}
}
-bool havePositionRestraints(const t_idef &idef,
- const t_fcdata &fcd)
+bool haveRestraints(const t_idef &idef,
+ const t_fcdata &fcd)
{
return
((idef.il[F_POSRES].nr > 0) ||
const t_idef &idef,
const t_fcdata &fcd)
{
- return haveCpuBondeds(fr) || havePositionRestraints(idef, fcd);
+ return haveCpuBondeds(fr) || haveRestraints(idef, fcd);
}
void calc_listed(const t_commrec *cr,
pbc_null = nullptr;
}
- if (havePositionRestraints(*idef, *fcd))
+ if (haveRestraints(*idef, *fcd))
{
/* TODO Use of restraints triggers further function calls
inside the loop over calc_one_bond(), but those are too
int *global_atom_index,
const gmx::StepWorkload &stepWork);
-/*! \brief Returns true if there are position restraints. */
-bool havePositionRestraints(const t_idef &idef,
- const t_fcdata &fcd);
+/*! \brief Returns true if there are position, distance or orientation restraints. */
+bool haveRestraints(const t_idef &idef,
+ const t_fcdata &fcd);
/*! \brief Returns true if there are CPU (i.e. not GPU-offloaded) bonded interactions to compute. */
bool haveCpuBondeds(const t_forcerec &fr);
domainWork.haveSpecialForces = haveSpecialForces(inputrec, *fr.forceProviders, pull_work, stepWork.computeForces, ed);
domainWork.haveCpuBondedWork = haveCpuBondeds(fr);
domainWork.haveGpuBondedWork = ((fr.gpuBonded != nullptr) && fr.gpuBonded->haveInteractions());
- domainWork.haveRestraintsWork = havePositionRestraints(idef, fcd);
+ domainWork.haveRestraintsWork = haveRestraints(idef, fcd);
domainWork.haveCpuListedForceWork = haveCpuListedForces(fr, idef, fcd);
// Note that haveFreeEnergyWork is constant over the whole run
domainWork.haveFreeEnergyWork = (fr.efep != efepNO && mdatoms.nPerturbed != 0);