Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
ac587668
Commit
ac587668
authored
Jan 27, 2016
by
Cristian Lalescu
Browse files
update FluidResize.__init__
parent
f8808bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
bfps/FluidResize.py
View file @
ac587668
...
...
@@ -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
...
...
tests/base.py
View file @
ac587668
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment