The grompp note with position restraints and center of mass motion
removal checked for absolute reference instead of COMM removal.
This bug was introduced in commit
0c7124d7 when fixing #3996.
Fixes #4128
Fixes for ``gmx`` tools
^^^^^^^^^^^^^^^^^^^^^^^
+grompp now prints a note again when combining center of mass motion removal and position restraints
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+:issue:`4128`
+
Fixes that affect portability
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
set_warning_line(wi, mdparin, -1);
- if (allTrue(haveAbsoluteReference(*ir)) && allTrue(havePositionRestraints(*sys)))
+ if (ir->comm_mode != ecmNO && allTrue(havePositionRestraints(*sys)))
{
warning_note(wi,
"Removing center of mass motion in the presence of position restraints might "