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
20185acc
Commit
20185acc
authored
May 28, 2020
by
peastman
Browse files
Use integration force groups for reporters
parent
7590374b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wrappers/python/simtk/openmm/app/simulation.py
wrappers/python/simtk/openmm/app/simulation.py
+3
-2
No files found.
wrappers/python/simtk/openmm/app/simulation.py
View file @
20185acc
...
@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of
...
@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of
Biological Structures at Stanford, funded under the NIH Roadmap for
Biological Structures at Stanford, funded under the NIH Roadmap for
Medical Research, grant U54 GM072970. See https://simtk.org.
Medical Research, grant U54 GM072970. See https://simtk.org.
Portions copyright (c) 2012-20
15
Stanford University and the Authors.
Portions copyright (c) 2012-20
20
Stanford University and the Authors.
Authors: Peter Eastman
Authors: Peter Eastman
Contributors:
Contributors:
...
@@ -250,7 +250,8 @@ class Simulation(object):
...
@@ -250,7 +250,8 @@ class Simulation(object):
if
next
[
4
]:
if
next
[
4
]:
getEnergy
=
True
getEnergy
=
True
state
=
self
.
context
.
getState
(
getPositions
=
getPositions
,
getVelocities
=
getVelocities
,
getForces
=
getForces
,
state
=
self
.
context
.
getState
(
getPositions
=
getPositions
,
getVelocities
=
getVelocities
,
getForces
=
getForces
,
getEnergy
=
getEnergy
,
getParameters
=
True
,
enforcePeriodicBox
=
periodic
)
getEnergy
=
getEnergy
,
getParameters
=
True
,
enforcePeriodicBox
=
periodic
,
groups
=
self
.
context
.
getIntegrator
().
getIntegrationForceGroups
())
for
reporter
,
next
in
reports
:
for
reporter
,
next
in
reports
:
reporter
.
report
(
self
,
state
)
reporter
.
report
(
self
,
state
)
...
...
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