std::vector<reverse_ilist_t> ril_mt;
//! \brief The size of ril_mt[?].index summed over all entries
int ril_mt_tot_size = 0;
- //! \brief The sorting state of bondeds for free energy
- int ilsort = ilsortUNKNOWN;
+ //! \brief Whether listed-force interaction lists should be sorted for free energy
+ bool doListedForcesSorting;
//! \brief molblock to global atom index for quick lookup of molblocks on atom index
std::vector<MolblockIndices> mbi;
return impl_->th_work;
}
-bool gmx_reverse_top_t::doSorting() const
+bool gmx_reverse_top_t::doListedForcesSorting() const
{
- return impl_->ilsort != ilsortNO_FE;
+ return impl_->doListedForcesSorting;
}
/*! \brief Generate the reverse topology */
*mtop.intermolecular_ilist, &atoms_global, options, AtomLinkRule::FirstAtom, &ril_intermol);
}
- if (useFreeEnergy && gmx_mtop_bondeds_free_energy(&mtop))
- {
- ilsort = ilsortFE_UNSORTED;
- }
- else
- {
- ilsort = ilsortNO_FE;
- }
+ doListedForcesSorting = useFreeEnergy && gmx_mtop_bondeds_free_energy(&mtop);
/* Make a molblock index for fast searching */
int i = 0;