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
171ab746
Commit
171ab746
authored
Jan 27, 2016
by
Cristian Lalescu
Browse files
move precision option to _fluid_particle_base
parent
0d18b5f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
bfps/NavierStokes.py
View file @
171ab746
...
...
@@ -943,10 +943,6 @@ class NavierStokes(_fluid_particle_base):
type
=
int
,
dest
=
'src_iteration'
,
default
=
0
)
parser
.
add_argument
(
'--precision'
,
type
=
str
,
dest
=
'precision'
,
default
=
'single'
)
parser
.
add_argument
(
'--njobs'
,
type
=
int
,
dest
=
'njobs'
,
...
...
bfps/_fluid_base.py
View file @
171ab746
...
...
@@ -395,4 +395,13 @@ class _fluid_particle_base(_code):
nshells
=
kspace
[
'nshell'
].
shape
[
0
]
ofile
.
close
()
return
None
def
specific_parser_arguments
(
self
,
parser
):
_code
.
specific_parser_arguments
(
self
,
parser
)
parser
.
add_argument
(
'--precision'
,
type
=
str
,
dest
=
'precision'
,
default
=
'single'
)
return
None
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