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
4ec2017e
Commit
4ec2017e
authored
Jun 14, 2019
by
Jonathan Lambrechts
Browse files
consistent bnd adv
parent
b953997a
Pipeline
#5436
passed with stage
in 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fluid/fluid_problem.c
View file @
4ec2017e
...
...
@@ -228,8 +228,8 @@ static void f_boundary(WeakBoundary *wbnd, FluidProblem *problem,const double *n
else
if
(
vid
>
0
)
unbnd
=
(
unold
+
unext
)
/
2
;
if
(
unbnd
<
0
)
{
for
(
int
id
=
0
;
id
<
D
;
++
id
)
{
f0
[
U
+
id
]
+=
unbnd
*
(
(
vid
<
0
?
0
:
data
[
vid
+
id
])
-
u
[
id
])
*
rho
/
c
;
f00
[(
U
+
id
)
*
n_fields
+
U
+
id
]
-=
un
bn
d
*
rho
/
c
;
f0
[
U
+
id
]
+=
(
unbnd
*
(
vid
<
0
?
0
:
data
[
vid
+
id
])
-
unold
*
u
[
id
])
*
rho
/
c
;
f00
[(
U
+
id
)
*
n_fields
+
U
+
id
]
-=
un
ol
d
*
rho
/
c
;
}
}
}
...
...
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