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
283b1acd
"vscode:/vscode.git/clone" did not exist on "486dd1d99520f08b586884e709246365a601037f"
Commit
283b1acd
authored
Oct 06, 2016
by
John Chodera (MSKCC)
Browse files
Fix precision issue in MTSIntegrator
parent
69d5e8b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wrappers/python/simtk/openmm/mtsintegrator.py
wrappers/python/simtk/openmm/mtsintegrator.py
+3
-2
No files found.
wrappers/python/simtk/openmm/mtsintegrator.py
View file @
283b1acd
...
...
@@ -98,10 +98,11 @@ class MTSIntegrator(CustomIntegrator):
for
i
in
range
(
stepsPerParentStep
):
self
.
addComputePerDof
(
"v"
,
"v+0.5*(dt/"
+
str
(
substeps
)
+
")*f"
+
str
(
group
)
+
"/m"
)
if
len
(
groups
)
==
1
:
self
.
addComputePerDof
(
"x1"
,
"x"
)
self
.
addComputePerDof
(
"x"
,
"x+(dt/"
+
str
(
substeps
)
+
")*v"
)
self
.
addComputePerDof
(
"x1"
,
"x"
)
self
.
addConstrainPositions
();
self
.
addComputePerDof
(
"v"
,
"(x-x1)/(dt/"
+
str
(
substeps
)
+
")"
);
self
.
addComputePerDof
(
"v"
,
"v+(x-x1)/(dt/"
+
str
(
substeps
)
+
")"
);
self
.
addConstrainVelocities
()
else
:
self
.
_createSubsteps
(
substeps
,
groups
[
1
:])
self
.
addComputePerDof
(
"v"
,
"v+0.5*(dt/"
+
str
(
substeps
)
+
")*f"
+
str
(
group
)
+
"/m"
)
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