"platforms/cpu/include/AlignedArray.h" did not exist on "47e03b07cd37464b93db2c69c2a36932eae60b97"
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**
}
if (hasParamDerivs)
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];
}
......
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