Commit 0d18b5f1 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

actually use precision argument

parent 24743c83
......@@ -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)
......
......@@ -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
......
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