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

fix creation of particle file

parent ffcf3d04
......@@ -916,7 +916,7 @@ class DNS(_code):
species = 0,
rseed = opt.particle_rand_seed)
if not os.path.exists(self.get_particle_file_name()):
with particle_file = h5py.File(self.get_particle_file_name(), 'w'):
with h5py.File(self.get_particle_file_name(), 'w') as particle_file:
particle_file.create_group('tracers0/velocity')
self.run(
nb_processes = opt.nb_processes,
......
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