Commit 35b7189c authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed error applying parameter offsets with CPU platform

parent d5905f89
...@@ -722,8 +722,6 @@ void CpuCalcNonbondedForceKernel::copyParametersToContext(ContextImpl& context, ...@@ -722,8 +722,6 @@ void CpuCalcNonbondedForceKernel::copyParametersToContext(ContextImpl& context,
// Record the values. // Record the values.
chargePosqIndex = data.requestPosqIndex();
ljPosqIndex = data.requestPosqIndex();
for (int i = 0; i < numParticles; ++i) for (int i = 0; i < numParticles; ++i)
force.getParticleParameters(i, baseParticleParams[i][0], baseParticleParams[i][1], baseParticleParams[i][2]); force.getParticleParameters(i, baseParticleParams[i][0], baseParticleParams[i][1], baseParticleParams[i][2]);
for (int i = 0; i < num14; ++i) { for (int i = 0; i < num14; ++i) {
...@@ -806,6 +804,8 @@ void CpuCalcNonbondedForceKernel::computeParameters(ContextImpl& context, bool o ...@@ -806,6 +804,8 @@ void CpuCalcNonbondedForceKernel::computeParameters(ContextImpl& context, bool o
} }
else else
ewaldSelfEnergy = 0.0; ewaldSelfEnergy = 0.0;
chargePosqIndex = data.requestPosqIndex();
ljPosqIndex = data.requestPosqIndex();
} }
// Compute exception parameters. // Compute exception parameters.
......
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