diff --git a/bfps/NavierStokes.py b/bfps/NavierStokes.py index f1eedd965316c9dd6981c9368ef045026d13d93c..fb3557c8dadc82b5e0c884677a8adeb5878aace3 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 4a1029991f45811ef60d1742e8a055755aa07f60..6dddea03c1ba0f584e7f583fde018fab1c10fb63 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