"platforms/reference/vscode:/vscode.git/clone" did not exist on "c27f5d1f41a9e712331abb091b05b72b84e5c1a4"
Unverified Commit 92199268 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed test failure (#4281)

parent 32a5f304
......@@ -7952,6 +7952,7 @@ void CommonCalcATMForceKernel::copyState(ContextImpl& context,
}
void CommonCalcATMForceKernel::copyParametersToContext(ContextImpl& context, const ATMForce& force) {
ContextSelector selector(cc);
if (force.getNumParticles() != numParticles)
throw OpenMMException("copyParametersToContext: The number of ATMMetaForce particles has changed");
displVector1.resize(cc.getPaddedNumAtoms());
......
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