Commit c56b4801 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fix to the previous checkin (which broke load balancing)

parent 5a9897bd
......@@ -82,8 +82,12 @@ public:
// Execute the kernel, then download forces.
energy += kernel.finishComputation(context, includeForce, includeEnergy);
if (includeForce && cl.getContextIndex() > 0)
if (includeForce) {
if (cl.getContextIndex() > 0)
cl.getForce().download(&contextForces[cl.getContextIndex()*cl.getPaddedNumAtoms()]);
else
cl.getQueue().finish();
}
completionTime = getTime();
}
private:
......
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