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
fluidparticles
MigFlow
Commits
af33d69e
Commit
af33d69e
authored
Nov 14, 2018
by
Jonathan Lambrechts
Browse files
fix python2
parent
f885d6b8
Pipeline
#4604
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/fluid.py
View file @
af33d69e
...
...
@@ -147,7 +147,7 @@ class FluidProblem :
raise
NameError
(
"Pressure or Velocity (but not both) should be specified at open boundaries"
)
if
velocity
is
not
None
:
n_value
=
self
.
_dim
+
self
.
_n_fluids
-
1
# u, v, w, a
cb_or_value
=
[
*
velocity
,
concentration
]
if
self
.
_n_fluids
==
2
else
velocity
cb_or_value
=
velocity
+
[
concentration
]
if
self
.
_n_fluids
==
2
else
velocity
bnd_type
=
"velocity"
else
:
n_value
=
self
.
_n_fluids
# p, a
...
...
Write
Preview
Markdown
is supported
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