}
}
-static bool absolute_reference(t_inputrec* ir, gmx_mtop_t* sys, bool posres_only, ivec AbsRef)
+static bool absolute_reference(const t_inputrec* ir, const gmx_mtop_t* sys, const bool posres_only, ivec AbsRef)
{
int d, g, i;
gmx_mtop_ilistloop_t iloop;
int nmol;
- t_iparams* pr;
+ const t_iparams* pr;
clear_ivec(AbsRef);
set_warning_line(wi, mdparin, -1);
+ if (absolute_reference(ir, sys, false, AbsRef))
+ {
+ warning_note(wi,
+ "Removing center of mass motion in the presence of position restraints might "
+ "cause artifacts");
+ }
+
if (ir->cutoff_scheme == ecutsVERLET && ir->verletbuf_tol > 0 && ir->nstlist > 1
&& ((EI_MD(ir->eI) || EI_SD(ir->eI)) && (ir->etc == etcVRESCALE || ir->etc == etcBERENDSEN)))
{