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
9b274ac8
Commit
9b274ac8
authored
Sep 02, 2021
by
Michel Henry
Browse files
fix advection boundary
parent
7e8c253a
Changes
1
Hide whitespace changes
Inline
Side-by-side
fluid/fluid_problem.c
View file @
9b274ac8
...
...
@@ -237,7 +237,7 @@ static void f_boundary(WeakBoundary *wbnd, FluidProblem *problem,const double *n
if
(
unbnd
-
unmesh
<
0
)
{
for
(
int
id
=
0
;
id
<
D
;
++
id
)
{
f0
[
U
+
id
]
+=
((
unbnd
-
unmesh
)
*
(
vid
<
0
?
0
:
uext
[
id
])
-
(
unold
-
unmesh
)
*
u
[
id
])
*
rho
/
c
;
f00
[(
U
+
id
)
*
n_fields
+
U
+
id
]
-=
unold
*
rho
/
c
;
f00
[(
U
+
id
)
*
n_fields
+
U
+
id
]
-=
(
unold
-
unmesh
)
*
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