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
b03eebf1
Commit
b03eebf1
authored
Dec 18, 2014
by
peastman
Browse files
Merge pull request #756 from peastman/variable
Fixed uninitialized memory in variable step size integrators
parents
bf8de1fd
a7ab2753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
openmmapi/src/VariableLangevinIntegrator.cpp
openmmapi/src/VariableLangevinIntegrator.cpp
+1
-0
openmmapi/src/VariableVerletIntegrator.cpp
openmmapi/src/VariableVerletIntegrator.cpp
+1
-0
No files found.
openmmapi/src/VariableLangevinIntegrator.cpp
View file @
b03eebf1
...
@@ -49,6 +49,7 @@ VariableLangevinIntegrator::VariableLangevinIntegrator(double temperature, doubl
...
@@ -49,6 +49,7 @@ VariableLangevinIntegrator::VariableLangevinIntegrator(double temperature, doubl
setErrorTolerance
(
errorTol
);
setErrorTolerance
(
errorTol
);
setConstraintTolerance
(
1e-5
);
setConstraintTolerance
(
1e-5
);
setRandomNumberSeed
(
osrngseed
());
setRandomNumberSeed
(
osrngseed
());
setStepSize
(
0.0
);
}
}
void
VariableLangevinIntegrator
::
initialize
(
ContextImpl
&
contextRef
)
{
void
VariableLangevinIntegrator
::
initialize
(
ContextImpl
&
contextRef
)
{
...
...
openmmapi/src/VariableVerletIntegrator.cpp
View file @
b03eebf1
...
@@ -43,6 +43,7 @@ using std::vector;
...
@@ -43,6 +43,7 @@ using std::vector;
VariableVerletIntegrator
::
VariableVerletIntegrator
(
double
errorTol
)
:
errorTol
(
errorTol
)
{
VariableVerletIntegrator
::
VariableVerletIntegrator
(
double
errorTol
)
:
errorTol
(
errorTol
)
{
setConstraintTolerance
(
1e-5
);
setConstraintTolerance
(
1e-5
);
setStepSize
(
0.0
);
}
}
void
VariableVerletIntegrator
::
initialize
(
ContextImpl
&
contextRef
)
{
void
VariableVerletIntegrator
::
initialize
(
ContextImpl
&
contextRef
)
{
...
...
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