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

fix creation of particle file

parent ffcf3d04
No related branches found
No related tags found
2 merge requests!21Bugfix/nansampling,!19Feature/sampling new particles test (extension of Update particles sampling for variable dim)
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment