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
9a245d12
Commit
9a245d12
authored
May 07, 2012
by
Peter Eastman
Browse files
Fixed crash when calling setGlobalVariable() before a Context is created
parent
b69f0c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openmmapi/src/CustomIntegrator.cpp
openmmapi/src/CustomIntegrator.cpp
+2
-1
No files found.
openmmapi/src/CustomIntegrator.cpp
View file @
9a245d12
...
...
@@ -122,7 +122,8 @@ void CustomIntegrator::setGlobalVariable(int index, double value) {
globalsAreCurrent
=
true
;
}
globalValues
[
index
]
=
value
;
dynamic_cast
<
IntegrateCustomStepKernel
&>
(
kernel
.
getImpl
()).
setGlobalVariables
(
*
context
,
globalValues
);
if
(
owner
!=
NULL
)
dynamic_cast
<
IntegrateCustomStepKernel
&>
(
kernel
.
getImpl
()).
setGlobalVariables
(
*
context
,
globalValues
);
}
void
CustomIntegrator
::
setGlobalVariableByName
(
const
string
&
name
,
double
value
)
{
...
...
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