Unverified Commit 4358f071 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed error when invalidating molecules (#3460)

parent cb293447
......@@ -389,6 +389,7 @@ bool ComputeContext::invalidateMolecules(ComputeForceInfo* force) {
vector<mm_double4> oldVelm(paddedNumAtoms);
vector<mm_double4> newVelm(paddedNumAtoms, mm_double4(0,0,0,0));
getPosq().download(oldPosq);
getPosqCorrection().download(oldPosqCorrection);
getVelm().download(oldVelm);
for (int i = 0; i < numAtoms; i++) {
int index = atomIndex[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment