Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
541789d7
Commit
541789d7
authored
Aug 10, 2018
by
cmaffeo2
Browse files
Added os.sync call to ensure all files are written before ARBD/NAMD run
parent
d3772794
Changes
1
Hide whitespace changes
Inline
Side-by-side
arbdmodel.py
View file @
541789d7
...
...
@@ -705,6 +705,7 @@ class ArbdModel(PdbModel):
self
.
writePdb
(
outputPrefix
+
".pdb"
)
self
.
writePsf
(
outputPrefix
+
".psf"
)
self
.
writeArbdFiles
(
outputPrefix
,
numSteps
=
numSteps
,
outputPeriod
=
outputPeriod
)
os
.
sync
()
## http://stackoverflow.com/questions/18421757/live-output-from-subprocess-command
cmd
=
(
arbd
,
'-g'
,
"%d"
%
gpu
,
"%s.bd"
%
outputPrefix
,
"%s/%s"
%
(
outputDirectory
,
outputPrefix
))
...
...
@@ -967,3 +968,4 @@ component "data" value 3
if
outputDirectory
==
''
:
outputDirectory
=
'.'
self
.
writePdb
(
outputPrefix
+
".pdb"
)
self
.
writePsf
(
outputPrefix
+
".psf"
)
os
.
sync
()
Write
Preview
Supports
Markdown
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