Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
8ab5b907
Commit
8ab5b907
authored
Sep 22, 2014
by
Robert McGibbon
Browse files
revert change to other function
parent
1b245565
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
openmmapi/src/CustomIntegrator.cpp
openmmapi/src/CustomIntegrator.cpp
+1
-2
No files found.
openmmapi/src/CustomIntegrator.cpp
View file @
8ab5b907
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment