Need global communication the step befre nsttcouple
in order to get the kinetic energy right, because
of the offsets velocity verlet from leapfrog.
Fixes redmine #1129
Change-Id: Ia6157db8304cc4fb8cccbda0ac3b949e800efeb5
/* Do we need global communication ? */
bGStat = (bCalcVir || bCalcEner || bStopCM ||
- do_per_step(step, nstglobalcomm) ||
+ do_per_step(step, nstglobalcomm) || (bVV && IR_NVT_TROTTER(ir) && do_per_step(step-1, nstglobalcomm)) ||
(ir->nstlist == -1 && !bRerunMD && step >= nlh.step_nscheck));
do_ene = (do_per_step(step, ir->nstenergy) || bLastStep);