From 0d18b5f176c5234b4a5586d722f88796e0c0f17d Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Wed, 27 Jan 2016 15:57:41 +0100 Subject: [PATCH] actually use precision argument --- bfps/NavierStokes.py | 4 +++- bfps/__main__.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bfps/NavierStokes.py b/bfps/NavierStokes.py index f1eedd96..fb3557c8 100644 --- a/bfps/NavierStokes.py +++ b/bfps/NavierStokes.py @@ -998,7 +998,9 @@ class NavierStokes(_fluid_particle_base): meantrS2 = (opt.n//2 / opt.kMeta)**4 * self.parameters['nu']**2 self.parameters['max_Q_estimate'] = meantrS2 self.parameters['max_R_estimate'] = .4*meantrS2**1.5 - self.name += 'QR' + # add QR suffix to code name, since we now expect additional + # datasets in the .h5 file + self.name += '-QR' if len(opt.src_work_dir) == 0: opt.src_work_dir = opt.work_dir self.pars_from_namespace(opt) diff --git a/bfps/__main__.py b/bfps/__main__.py index 4a102999..6dddea03 100644 --- a/bfps/__main__.py +++ b/bfps/__main__.py @@ -47,7 +47,7 @@ def main(): opt = parser.parse_args(sys.argv[1:2]) # error is thrown if first option is not a base class, so launch # cannot be executed by mistake. - c = eval('{0}()'.format(opt.base_class)) + c = eval('{0}(fluid_precision = {1})'.format(opt.base_class, opt.precision)) c.launch(args = sys.argv[2:]) return None -- GitLab