const matrix pressure,
const matrix forceVirial,
const matrix constraintVirial,
- const matrix parrinellorahmanMu,
+ matrix pressureCouplingMu,
t_state* state,
t_nrnb* nrnb,
Update* upd)
case (epcBERENDSEN):
if (do_per_step(step, inputrec->nstpcouple))
{
- real dtpc = inputrec->nstpcouple * dt;
- matrix mu;
+ real dtpc = inputrec->nstpcouple * dt;
berendsen_pcoupl(fplog, step, inputrec, dtpc, pressure, state->box, forceVirial,
- constraintVirial, mu, &state->baros_integral);
- berendsen_pscale(inputrec, mu, state->box, state->box_rel, start, homenr,
- state->x.rvec_array(), md->cFREEZE, nrnb);
+ constraintVirial, pressureCouplingMu, &state->baros_integral);
+ berendsen_pscale(inputrec, pressureCouplingMu, state->box, state->box_rel, start,
+ homenr, state->x.rvec_array(), md->cFREEZE, nrnb);
}
break;
case (epcPARRINELLORAHMAN):
auto x = state->x.rvec_array();
for (int n = start; n < start + homenr; n++)
{
- tmvmul_ur0(parrinellorahmanMu, x[n], x[n]);
+ tmvmul_ur0(pressureCouplingMu, x[n], x[n]);
}
}
break;
pres = { { 0 } };
int i, m;
rvec mu_tot;
- matrix parrinellorahmanMu, M;
+ matrix pressureCouplingMu, M;
gmx_repl_ex_t repl_ex = nullptr;
gmx_localtop_t top;
PaddedHostVector<gmx::RVec> f{};
else
{
update_tcouple(step, ir, state, ekind, &MassQ, mdatoms);
- update_pcouple_before_coordinates(fplog, step, ir, state, parrinellorahmanMu, M, bInitStep);
+ update_pcouple_before_coordinates(fplog, step, ir, state, pressureCouplingMu, M, bInitStep);
}
if (EI_VV(ir->eI))
}
update_pcouple_after_coordinates(fplog, step, ir, mdatoms, pres, force_vir, shake_vir,
- parrinellorahmanMu, state, nrnb, &upd);
+ pressureCouplingMu, state, nrnb, &upd);
/* ################# END UPDATE STEP 2 ################# */
/* #### We now have r(t+dt) and v(t+dt/2) ############# */