Commit 3f9d4b69 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add better control of dset generation

parent 559d4b8d
......@@ -379,7 +379,8 @@ class DNS(_code):
def write_par(
self,
iter0 = 0,
particle_ic = None):
particle_ic = None,
particles_off = False):
assert (self.parameters['niter_todo'] % self.parameters['niter_stat'] == 0)
assert (self.parameters['niter_todo'] % self.parameters['niter_out'] == 0)
assert (self.parameters['niter_out'] % self.parameters['niter_stat'] == 0)
......@@ -426,7 +427,7 @@ class DNS(_code):
4),
dtype = np.int64)
ofile['checkpoint'] = int(0)
if self.dns_type in ['NSVE', 'NSVE_no_output']:
if (self.dns_type in ['NSVE', 'NSVE_no_output']) or particles_off:
return None
if type(particle_ic) == type(None):
......
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