Commit d123dd7e authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

use "code_info" in par file consistently

instead of bfps_info or TurTLE_info.
parent 356af5ce
Pipeline #50799 passed with stage
in 3 minutes and 21 seconds
......@@ -445,7 +445,7 @@ class DNS(_code):
assert (self.parameters['niter_out'] % self.parameters['niter_part'] == 0)
_code.write_par(self, iter0 = iter0)
with h5py.File(self.get_data_file_name(), 'r+') as ofile:
ofile['TurTLE_info/exec_name'] = self.name
ofile['code_info/exec_name'] = self.name
kspace = self.get_kspace()
for k in kspace.keys():
ofile['kspace/' + k] = kspace[k]
......
......@@ -167,7 +167,7 @@ class TEST(_code):
assert (iter0 == 0)
_code.write_par(self, iter0 = iter0)
with h5py.File(self.get_data_file_name(), 'r+') as ofile:
ofile['TurTLE_info/exec_name'] = self.name
ofile['code_info/exec_name'] = self.name
kspace = self.get_kspace()
for k in kspace.keys():
ofile['kspace/' + k] = kspace[k]
......
......@@ -172,8 +172,8 @@ class _base(object):
else:
ofile['parameters/' + k] = self.parameters[k]
ofile['iteration'] = int(iter0)
ofile['bfps_info/solver_class'] = type(self).__name__
ofile['bfps_info/VERSION'] = __version__
ofile['code_info/solver_class'] = type(self).__name__
ofile['code_info/VERSION'] = __version__
ofile.close()
return None
def rewrite_par(
......
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