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

Computing energy without forces caused the array of forces to be overwritten

parent 5f95295e
......@@ -107,7 +107,6 @@ void OpenCLCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, boo
double OpenCLCalcForcesAndEnergyKernel::finishComputation(ContextImpl& context, bool includeForces, bool includeEnergy) {
cl.getBondedUtilities().computeInteractions();
cl.getNonbondedUtilities().computeInteractions();
if (includeForces)
cl.reduceForces();
double sum = 0.0f;
if (includeEnergy) {
......
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