if (vsite)
{
/* Construct the virtual sites for the initial configuration */
- construct_vsites(vsite, state->x.rvec_array(), ir->delta_t, nullptr, top.idef.iparams,
- top.idef.il, fr->pbcType, fr->bMolPBC, cr, state->box);
+ vsite->construct(state->x, ir->delta_t, {}, state->box);
}
}
if (vsite != nullptr)
{
wallcycle_start(wcycle, ewcVSITECONSTR);
- construct_vsites(vsite, state->x.rvec_array(), ir->delta_t, state->v.rvec_array(),
- top.idef.iparams, top.idef.il, fr->pbcType, fr->bMolPBC, cr, state->box);
+ vsite->construct(state->x, ir->delta_t, state->v, state->box);
wallcycle_stop(wcycle, ewcVSITECONSTR);
}