Commit 5456d7b9 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add name information to data file

parent 986af309
......@@ -388,6 +388,7 @@ class _fluid_particle_base(_code):
assert (self.parameters['niter_out'] % self.parameters['niter_part'] == 0)
_code.write_par(self, iter0 = iter0)
with h5py.File(os.path.join(self.work_dir, self.simname + '.h5'), 'r+') as ofile:
ofile['bfps_info/exec_name'] =
ofile['field_dtype'] = np.dtype(self.dtype).str
kspace = self.get_kspace()
for k in kspace.keys():
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