"vscode:/vscode.git/clone" did not exist on "01f2108936e7e7d475c2e0b057a5b192408e5719"
Unverified Commit a351c396 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2328 from peastman/offset

Fixed error applying parameter offsets with CPU platform
parents d5905f89 35b7189c
......@@ -722,8 +722,6 @@ void CpuCalcNonbondedForceKernel::copyParametersToContext(ContextImpl& context,
// Record the values.
chargePosqIndex = data.requestPosqIndex();
ljPosqIndex = data.requestPosqIndex();
for (int i = 0; i < numParticles; ++i)
force.getParticleParameters(i, baseParticleParams[i][0], baseParticleParams[i][1], baseParticleParams[i][2]);
for (int i = 0; i < num14; ++i) {
......@@ -806,6 +804,8 @@ void CpuCalcNonbondedForceKernel::computeParameters(ContextImpl& context, bool o
}
else
ewaldSelfEnergy = 0.0;
chargePosqIndex = data.requestPosqIndex();
ljPosqIndex = data.requestPosqIndex();
}
// 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