Fixes where mdrun could behave incorrectly
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Fix MiMiC with virtual sites
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+It is likely that MiMiC with virtual sites has not worked
+correctly because the call to construct the sites was placed
+after the call that uses the sites. Now it should work, but we have not tested that it does.
+
+:issue:`3866`
+
Fixes for ``gmx`` tools
^^^^^^^^^^^^^^^^^^^^^^^
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
"decomposition, "
"use a single rank");
}
+ if (constructVsites)
+ {
+ wallcycle_start(wcycle, ewcVSITECONSTR);
+ vsite->construct(state->x, ir->delta_t, state->v, state->box);
+ wallcycle_stop(wcycle, ewcVSITECONSTR);
+ }
}
if (DOMAINDECOMP(cr))
stopHandler->setSignal();
- if (vsite != nullptr)
- {
- wallcycle_start(wcycle, ewcVSITECONSTR);
- vsite->construct(state->x, ir->delta_t, state->v, state->box);
- wallcycle_stop(wcycle, ewcVSITECONSTR);
- }
-
{
const bool doInterSimSignal = false;
const bool doIntraSimSignal = true;