Commit ac587668 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

update FluidResize.__init__

parent f8808bc9
......@@ -41,14 +41,14 @@ class FluidResize(_fluid_particle_base):
name = 'FluidResize-v' + bfps.__version__,
work_dir = './',
simname = 'test',
dtype = np.float32,
fluid_precision = 'single',
use_fftw_wisdom = False):
_fluid_particle_base.__init__(
self,
name = name + '-' + fluid_precision,
work_dir = work_dir,
simname = simname,
dtype = dtype,
dtype = fluid_precision,
use_fftw_wisdom = use_fftw_wisdom)
self.parameters['src_simname'] = 'test'
self.parameters['dst_iter'] = 0
......
......@@ -92,7 +92,7 @@ parser.add_argument(
def double(opt):
old_simname = 'N{0:0>3x}'.format(opt.n)
new_simname = 'N{0:0>3x}'.format(opt.n*2)
c = FluidResize(dtype = opt.precision)
c = FluidResize(fluid_precision = opt.precision)
c.launch(
args = ['--simname', old_simname + '_double',
'--wd', opt.work_dir,
......
Markdown is supported
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