{
state_global->ngtc = 0;
}
- initialize_lambdas(fplog, *ir, MASTER(cr), &(state_global->fep_state), state_global->lambda, nullptr);
+ int* fep_state = MASTER(cr) ? &state_global->fep_state : nullptr;
+ gmx::ArrayRef<real> lambda = MASTER(cr) ? state_global->lambda : gmx::ArrayRef<real>();
+ initialize_lambdas(fplog, *ir, MASTER(cr), fep_state, lambda, nullptr);
if (ir->eI == eiNM)
{
}
/* Send IMD energies and positions, if bIMD is TRUE. */
- if (imdSession->run(count, TRUE, state_global->box,
+ if (imdSession->run(count, TRUE, MASTER(cr) ? state_global->box : nullptr,
MASTER(cr) ? state_global->x.rvec_array() : nullptr, 0)
&& MASTER(cr))
{