Commit 7851bad8 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed segfault

parent 823b9a75
...@@ -231,7 +231,7 @@ void CpuCustomGBForce::calculateIxn(int numberOfAtoms, float* posq, RealOpenMM** ...@@ -231,7 +231,7 @@ void CpuCustomGBForce::calculateIxn(int numberOfAtoms, float* posq, RealOpenMM**
} }
if (hasParamDerivs) if (hasParamDerivs)
for (int i = 0; i < threads.getNumThreads(); i++) for (int i = 0; i < threads.getNumThreads(); i++)
for (int j = 0; j < threadData[j]->energyParamDerivs.size(); j++) for (int j = 0; j < threadData[i]->energyParamDerivs.size(); j++)
energyParamDerivs[j] += threadData[i]->energyParamDerivs[j]; energyParamDerivs[j] += threadData[i]->energyParamDerivs[j];
} }
......
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