pull_potential(pull_work, mdatoms->massT, &pbc, cr, t, lambda[efptRESTRAINT],
as_rvec_array(x.data()), force, &dvdl);
enerd->dvdl_lin[efptRESTRAINT] += dvdl;
- for (auto& dhdl : enerd->dhdlLambda)
- {
- dhdl += dvdl;
- }
wallcycle_stop(wcycle, ewcPULLPOT);
}
enerd->dvdl_lin[efptCOUL] += dvdl_q;
enerd->dvdl_lin[efptVDW] += dvdl_lj;
- for (auto& dhdl : enerd->dhdlLambda)
- {
- dhdl += dvdl_q + dvdl_lj;
- }
-
if (wcycle)
{
dd_cycles_add(cr->dd, cycles_seppme, ddCyclPME);
{
enerd->term[F_DISPCORR] = correction.energy;
enerd->term[F_DVDL_VDW] += correction.dvdl;
+ enerd->dvdl_lin[efptVDW] += correction.dvdl;
}
if (stepWork.computeVirial)
{
{
/* Compute the final potential energy terms */
accumulatePotentialEnergies(enerd, lambda, inputrec->fepvals);
- ;
if (!EI_TPI(inputrec->eI))
{