From ac68eb0c09bd29eba9420b9b510ec912c55eaad8 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Wed, 24 Feb 2021 17:52:23 +0100 Subject: [PATCH] fix scaling test simname --- tests/DNS/test_scaling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/DNS/test_scaling.py b/tests/DNS/test_scaling.py index 5cbff34a..9ba25e38 100644 --- a/tests/DNS/test_scaling.py +++ b/tests/DNS/test_scaling.py @@ -27,9 +27,10 @@ def get_DNS_parameters( simname = DNS_type + simname class_name = 'NSVE' if DNS_type != 'A': + exponent = int(np.log10(nparticles)) simname += 'p{0}e{1}'.format( - int(nparticles / 10**np.log10(nparticles)), - int(np.log10(nparticles))) + int(nparticles / 10**exponent), + exponent) class_name += 'particles' work_dir = 'nn{0:0>4d}np{1}'.format(nnodes, nprocesses) if not output_on: -- GitLab