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