Skip to content

Commit

Permalink
Fixed an incorrectly sized array (#4061)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman committed May 5, 2023
1 parent 7af565e commit ed049af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ReferenceCustomCVForce::ReferenceCustomCVForce(const CustomCVForce& force) {
paramDerivExpressions.clear();
for (auto& name : paramDerivNames)
paramDerivExpressions.push_back(energyExpr.differentiate(name).createCompiledExpression());
globalValues.resize(variableNames.size());
globalValues.resize(globalParameterNames.size());
cvValues.resize(numCVs);
map<string, double*> variableLocations;
for (int i = 0; i < globalParameterNames.size(); i++)
Expand Down

0 comments on commit ed049af

Please sign in to comment.