"platforms/cuda/vscode:/vscode.git/clone" did not exist on "b002cf1f7fd5d879f73e0c02718c3c080d024e79"
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 ...@@ -107,7 +107,6 @@ void OpenCLCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, boo
double OpenCLCalcForcesAndEnergyKernel::finishComputation(ContextImpl& context, bool includeForces, bool includeEnergy) { double OpenCLCalcForcesAndEnergyKernel::finishComputation(ContextImpl& context, bool includeForces, bool includeEnergy) {
cl.getBondedUtilities().computeInteractions(); cl.getBondedUtilities().computeInteractions();
cl.getNonbondedUtilities().computeInteractions(); cl.getNonbondedUtilities().computeInteractions();
if (includeForces)
cl.reduceForces(); cl.reduceForces();
double sum = 0.0f; double sum = 0.0f;
if (includeEnergy) { 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