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
ada8f2ee
Commit
ada8f2ee
authored
Jun 08, 2016
by
peastman
Browse files
Merge pull request #1512 from swails/fixdcd
Fix periodic box vector writing in the DCD reporter
parents
bf11baa7
8c27e63e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
wrappers/python/simtk/openmm/app/dcdreporter.py
wrappers/python/simtk/openmm/app/dcdreporter.py
+1
-2
No files found.
wrappers/python/simtk/openmm/app/dcdreporter.py
View file @
ada8f2ee
...
@@ -88,8 +88,7 @@ class DCDReporter(object):
...
@@ -88,8 +88,7 @@ class DCDReporter(object):
if
self
.
_dcd
is
None
:
if
self
.
_dcd
is
None
:
self
.
_dcd
=
DCDFile
(
self
.
_out
,
simulation
.
topology
,
simulation
.
integrator
.
getStepSize
(),
0
,
self
.
_reportInterval
)
self
.
_dcd
=
DCDFile
(
self
.
_out
,
simulation
.
topology
,
simulation
.
integrator
.
getStepSize
(),
0
,
self
.
_reportInterval
)
a
,
b
,
c
=
state
.
getPeriodicBoxVectors
()
self
.
_dcd
.
writeModel
(
state
.
getPositions
(),
periodicBoxVectors
=
state
.
getPeriodicBoxVectors
())
self
.
_dcd
.
writeModel
(
state
.
getPositions
(),
mm
.
Vec3
(
a
[
0
].
value_in_unit
(
nanometer
),
b
[
1
].
value_in_unit
(
nanometer
),
c
[
2
].
value_in_unit
(
nanometer
))
*
nanometer
)
def
__del__
(
self
):
def
__del__
(
self
):
self
.
_out
.
close
()
self
.
_out
.
close
()
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