real *dvdlambda, /* the contribution to be added to the bonded interactions */
t_state *state,
tensor vir_part,
- gmx_wallcycle_t wcycle,
gmx::Constraints *constr,
gmx_bool bCalcVir,
bool do_log,
clear_mat(vir_part);
/* Constrain the coordinates upd->xp */
- wallcycle_start(wcycle, ewcCONSTR);
- {
- constr->apply(do_log, do_ene,
- step, 1, 1.0,
- as_rvec_array(state->x.data()), as_rvec_array(state->v.data()), as_rvec_array(state->v.data()),
- state->box,
- state->lambda[efptBONDED], dvdlambda,
- nullptr, bCalcVir ? &vir_con : nullptr, ConstraintVariable::Velocities);
- }
- wallcycle_stop(wcycle, ewcCONSTR);
+ constr->apply(do_log, do_ene,
+ step, 1, 1.0,
+ as_rvec_array(state->x.data()), as_rvec_array(state->v.data()), as_rvec_array(state->v.data()),
+ state->box,
+ state->lambda[efptBONDED], dvdlambda,
+ nullptr, bCalcVir ? &vir_con : nullptr, ConstraintVariable::Velocities);
if (bCalcVir)
{
real *dvdlambda, /* the contribution to be added to the bonded interactions */
t_state *state,
tensor vir_part,
- gmx_wallcycle_t wcycle,
gmx_update_t *upd,
gmx::Constraints *constr,
gmx_bool bCalcVir,
clear_mat(vir_part);
/* Constrain the coordinates upd->xp */
- wallcycle_start(wcycle, ewcCONSTR);
- {
- constr->apply(do_log, do_ene,
- step, 1, 1.0,
- as_rvec_array(state->x.data()), as_rvec_array(upd->xp.data()), nullptr,
- state->box,
- state->lambda[efptBONDED], dvdlambda,
- as_rvec_array(state->v.data()), bCalcVir ? &vir_con : nullptr, ConstraintVariable::Positions);
- }
- wallcycle_stop(wcycle, ewcCONSTR);
+ constr->apply(do_log, do_ene,
+ step, 1, 1.0,
+ as_rvec_array(state->x.data()), as_rvec_array(upd->xp.data()), nullptr,
+ state->box,
+ state->lambda[efptBONDED], dvdlambda,
+ as_rvec_array(state->v.data()), bCalcVir ? &vir_con : nullptr, ConstraintVariable::Positions);
if (bCalcVir)
{
inc_nrnb(nrnb, eNR_UPDATE, homenr);
wallcycle_stop(wcycle, ewcUPDATE);
- {
- /* Constrain the coordinates upd->xp for half a time step */
- wallcycle_start(wcycle, ewcCONSTR);
- constr->apply(do_log, do_ene,
- step, 1, 0.5,
- as_rvec_array(state->x.data()), as_rvec_array(upd->xp.data()), nullptr,
- state->box,
- state->lambda[efptBONDED], dvdlambda,
- as_rvec_array(state->v.data()), nullptr, ConstraintVariable::Positions);
- wallcycle_stop(wcycle, ewcCONSTR);
- }
+ /* Constrain the coordinates upd->xp for half a time step */
+ constr->apply(do_log, do_ene,
+ step, 1, 0.5,
+ as_rvec_array(state->x.data()), as_rvec_array(upd->xp.data()), nullptr,
+ state->box,
+ state->lambda[efptBONDED], dvdlambda,
+ as_rvec_array(state->v.data()), nullptr, ConstraintVariable::Positions);
}
}
constrain_velocities(step, nullptr,
state,
shake_vir,
- wcycle, constr,
+ constr,
bCalcVir, do_log, do_ene);
wallcycle_start(wcycle, ewcUPDATE);
/* if VV, compute the pressure and constraints */
constrain_velocities(step, nullptr,
state,
tmp_vir,
- wcycle, constr,
+ constr,
bCalcVir, do_log, do_ene);
}
}
constrain_coordinates(step, &dvdl_constr, state,
shake_vir,
- wcycle, upd, constr,
+ upd, constr,
bCalcVir, do_log, do_ene);
update_sd_second_half(step, &dvdl_constr, ir, mdatoms, state,
cr, nrnb, wcycle, upd, constr, do_log, do_ene);