Commit 8ab5b907 authored by Robert McGibbon's avatar Robert McGibbon
Browse files

revert change to other function

parent 1b245565
...@@ -145,12 +145,11 @@ void CustomIntegrator::setGlobalVariable(int index, double value) { ...@@ -145,12 +145,11 @@ void CustomIntegrator::setGlobalVariable(int index, double value) {
} }
void CustomIntegrator::setGlobalVariableByName(const string& name, double value) { void CustomIntegrator::setGlobalVariableByName(const string& name, double value) {
for (int i = 0; i < (int) globalNames.size(); i++) { for (int i = 0; i < (int) globalNames.size(); i++)
if (name == globalNames[i]) { if (name == globalNames[i]) {
setGlobalVariable(i, value); setGlobalVariable(i, value);
return; return;
} }
}
throw OpenMMException("Illegal global variable name: "+name); throw OpenMMException("Illegal global variable name: "+name);
} }
......
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