Skip to content

Commit

Permalink
Clear forces vector before calling PLUMED (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Apr 1, 2024
1 parent 0f0f3f7 commit a3e935b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openmmapi/src/PlumedForceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ double PlumedForceImpl::computeForce(ContextImpl& context, const vector<Vec3>& p

// Calculate the forces and energy.

memset(&forces[0], 0, forces.size()*sizeof(Vec3));
plumed_cmd(plumedmain, "prepareCalc", NULL);
plumed_cmd(plumedmain, "performCalcNoUpdate", NULL);
if (step != lastStepIndex) {
Expand Down

0 comments on commit a3e935b

Please sign in to comment.