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