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
0d18b5f1
Commit
0d18b5f1
authored
Jan 27, 2016
by
Cristian Lalescu
Browse files
actually use precision argument
parent
24743c83
Changes
2
Hide whitespace changes
Inline
Side-by-side
bfps/NavierStokes.py
View file @
0d18b5f1
...
...
@@ -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
)
...
...
bfps/__main__.py
View file @
0d18b5f1
...
...
@@ -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
...
...
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