Unverified Commit 122dbde2 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Avoid error in updateParametersInContext() when there are no exceptions (#5209)

parent 4ab645ea
...@@ -1188,7 +1188,7 @@ void CommonCalcNonbondedForceKernel::copyParametersToContext(ContextImpl& contex ...@@ -1188,7 +1188,7 @@ void CommonCalcNonbondedForceKernel::copyParametersToContext(ContextImpl& contex
// Record the exceptions. // Record the exceptions.
if (firstException <= lastException) { if (firstException <= lastException && numExceptions > 0) {
vector<mm_float4> baseExceptionParamsVec(numExceptions); vector<mm_float4> baseExceptionParamsVec(numExceptions);
for (int i = 0; i < numExceptions; i++) { for (int i = 0; i < numExceptions; i++) {
int particle1, particle2; int particle1, particle2;
......
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