Commit 53cc8159 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix computation of checkpoint for checkpoint file name

parent a47bd4ee
Pipeline #45733 failed with stage
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment