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
TurTLE
TurTLE
Commits
53cc8159
Commit
53cc8159
authored
Mar 23, 2019
by
Cristian Lalescu
Browse files
fix computation of checkpoint for checkpoint file name
parent
a47bd4ee
Pipeline
#45733
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bfps/DNS.py
View file @
53cc8159
...
...
@@ -775,7 +775,7 @@ class DNS(_code):
self
.
work_dir
,
self
.
simname
+
'_checkpoint_0.h5'
)
def
get_checkpoint_fname
(
self
,
iteration
=
0
):
checkpoint
=
iteration
//
self
.
parameters
[
'checkpoints_per_file'
]
checkpoint
=
(
iteration
//
self
.
parameters
[
'niter_out'
])
//
self
.
parameters
[
'checkpoints_per_file'
]
return
os
.
path
.
join
(
self
.
work_dir
,
self
.
simname
+
'_checkpoint_{0}.h5'
.
format
(
checkpoint
))
...
...
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