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

moves initialization assert to better location

parent f3d86b44
No related branches found
No related tags found
No related merge requests found
Pipeline #80086 passed
......@@ -21,7 +21,6 @@ def get_DNS_parameters(
src_iteration = None,
kMeta = 1.5,
fftw_plan_rigor = 'FFTW_MEASURE'):
assert (N in [128, 1024, 2048, 4096])
simname = (DNS_type + '{0:0>4d}'.format(N))
if output_on:
simname = DNS_type + simname
......@@ -36,6 +35,7 @@ def get_DNS_parameters(
class_name += '_no_output'
src_simname = src_prefix + '_N{0:0>4d}_kMeta{1:.1f}'.format(N, kMeta)
if type(src_iteration) == type(None):
assert (N in [1024, 2048, 4096])
if N == 1024:
src_iteration = 32*1024
if N == 2048:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment