#include "gromacs/mdlib/constr.h"
#include "gromacs/mdlib/genborn.h"
#include "gromacs/mdlib/perf_est.h"
+#include "gromacs/mdlib/sim_util.h"
#include "gromacs/mdrunutility/mdmodules.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
warning(wi, buf);
}
+ /* If using the group scheme, make sure charge groups are made whole to avoid errors
+ * in calculating charge group size later on
+ */
+ if (ir->cutoff_scheme == ecutsGROUP && ir->ePBC != epbcNONE)
+ {
+ // Need temporary rvec for coordinates
+ do_pbc_first_mtop(nullptr, ir->ePBC, state->box, sys, as_rvec_array(state->x.data()));
+ }
+
/* Do more checks, mostly related to constraints */
if (bVerbose)
{