Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
880abb00
"README.md" did not exist on "c33df916c368410e413675fc2979a39d099c2fba"
Commit
880abb00
authored
6 years ago
by
Bert Vandenbroucke
Browse files
Options
Downloads
Patches
Plain Diff
Applied new clang-format formatting.
parent
269fadb3
No related branches found
No related tags found
1 merge request
!588
Gizmo mfm clean
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/riemann/riemann_hllc.h
+8
-12
8 additions, 12 deletions
src/riemann/riemann_hllc.h
with
8 additions
and
12 deletions
src/riemann/riemann_hllc.h
+
8
−
12
View file @
880abb00
...
@@ -76,15 +76,13 @@ __attribute__((always_inline)) INLINE static void riemann_solve_for_flux(
...
@@ -76,15 +76,13 @@ __attribute__((always_inline)) INLINE static void riemann_solve_for_flux(
all these speeds are along the interface normal, since uL and uR are */
all these speeds are along the interface normal, since uL and uR are */
float
qL
=
1
.
0
f
;
float
qL
=
1
.
0
f
;
if
(
pstar
>
WL
[
4
]
&&
WL
[
4
]
>
0
.
0
f
)
{
if
(
pstar
>
WL
[
4
]
&&
WL
[
4
]
>
0
.
0
f
)
{
qL
=
sqrtf
(
1
.
0
f
+
qL
=
sqrtf
(
1
.
0
f
+
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
(
pstar
/
WL
[
4
]
-
1
.
0
f
));
(
pstar
/
WL
[
4
]
-
1
.
0
f
));
}
}
float
qR
=
1
.
0
f
;
float
qR
=
1
.
0
f
;
if
(
pstar
>
WR
[
4
]
&&
WR
[
4
]
>
0
.
0
f
)
{
if
(
pstar
>
WR
[
4
]
&&
WR
[
4
]
>
0
.
0
f
)
{
qR
=
sqrtf
(
1
.
0
f
+
qR
=
sqrtf
(
1
.
0
f
+
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
(
pstar
/
WR
[
4
]
-
1
.
0
f
));
(
pstar
/
WR
[
4
]
-
1
.
0
f
));
}
}
const
float
SLmuL
=
-
aL
*
qL
;
const
float
SLmuL
=
-
aL
*
qL
;
const
float
SRmuR
=
aR
*
qR
;
const
float
SRmuR
=
aR
*
qR
;
...
@@ -220,15 +218,13 @@ riemann_solve_for_middle_state_flux(const float *WL, const float *WR,
...
@@ -220,15 +218,13 @@ riemann_solve_for_middle_state_flux(const float *WL, const float *WR,
all these speeds are along the interface normal, since uL and uR are */
all these speeds are along the interface normal, since uL and uR are */
float
qL
=
1
.
0
f
;
float
qL
=
1
.
0
f
;
if
(
pstar
>
WL
[
4
]
&&
WL
[
4
]
>
0
.
0
f
)
{
if
(
pstar
>
WL
[
4
]
&&
WL
[
4
]
>
0
.
0
f
)
{
qL
=
sqrtf
(
1
.
0
f
+
qL
=
sqrtf
(
1
.
0
f
+
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
(
pstar
/
WL
[
4
]
-
1
.
0
f
));
(
pstar
/
WL
[
4
]
-
1
.
0
f
));
}
}
float
qR
=
1
.
0
f
;
float
qR
=
1
.
0
f
;
if
(
pstar
>
WR
[
4
]
&&
WR
[
4
]
>
0
.
0
f
)
{
if
(
pstar
>
WR
[
4
]
&&
WR
[
4
]
>
0
.
0
f
)
{
qR
=
sqrtf
(
1
.
0
f
+
qR
=
sqrtf
(
1
.
0
f
+
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
0
.
5
f
*
hydro_gamma_plus_one
*
hydro_one_over_gamma
*
(
pstar
/
WR
[
4
]
-
1
.
0
f
));
(
pstar
/
WR
[
4
]
-
1
.
0
f
));
}
}
const
float
SLmuL
=
-
aL
*
qL
;
const
float
SLmuL
=
-
aL
*
qL
;
const
float
SRmuR
=
aR
*
qR
;
const
float
SRmuR
=
aR
*
qR
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment