Also, please use the syntax :issue:`number` to reference issues on GitLab, without the
a space between the colon and number!
+grompp no longer modifies nstcomm
+"""""""""""""""""""""""""""""""""
+
+grompp will no longer set nstcomm, the interval for center of mass motion
+removal, equal to nstcalcenergy when nstcomm < nstcalcenergy.
+A note is still printed in that case.
ir->nstcomm = abs(ir->nstcomm);
}
- if (ir->nstcalcenergy > 0 && ir->nstcomm < ir->nstcalcenergy)
+ if (ir->nstcalcenergy > 0 && ir->nstcomm < ir->nstcalcenergy
+ && ir->comm_mode != ComRemovalAlgorithm::LinearAccelerationCorrection)
{
warning_note(wi,
- "nstcomm < nstcalcenergy defeats the purpose of nstcalcenergy, setting "
- "nstcomm to nstcalcenergy");
- ir->nstcomm = ir->nstcalcenergy;
+ "nstcomm < nstcalcenergy defeats the purpose of nstcalcenergy, consider "
+ "setting nstcomm equal to nstcalcenergy for less overhead");
}
if (ir->comm_mode == ComRemovalAlgorithm::Angular)