Skip to content
Snippets Groups Projects
Commit a4ba9f0a authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fixes initial condition search procedure

parent ae2d011f
No related branches found
No related tags found
1 merge request!109fixes initial condition search procedure
Pipeline #205151 passed
...@@ -881,6 +881,7 @@ class DNS(_code): ...@@ -881,6 +881,7 @@ class DNS(_code):
for cp in range(source_current_checkpoint+1)] for cp in range(source_current_checkpoint+1)]
src_file = None src_file = None
for check_file in source_checkpoints: for check_file in source_checkpoints:
if os.path.exists(check_file):
f0 = h5py.File(check_file, 'r') f0 = h5py.File(check_file, 'r')
if ('{0}'.format(opt.src_iteration) if ('{0}'.format(opt.src_iteration)
in f0[checkpoint_field + '/complex'].keys()): in f0[checkpoint_field + '/complex'].keys()):
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment