Commit 50678501 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent c46d0c91
......@@ -73,16 +73,19 @@ __attribute__((always_inline)) INLINE static void riemann_solve_for_flux(
float qL = 1.f;
if (pstar > WL[4]) {
qL = sqrtf(1.f +
0.5f * hydro_gamma_plus_one * hydro_one_over_gamma * (pstar / WL[4] - 1.f));
0.5f * hydro_gamma_plus_one * hydro_one_over_gamma *
(pstar / WL[4] - 1.f));
}
float qR = 1.f;
if (pstar > WR[4]) {
qR = sqrtf(1.f +
0.5f * hydro_gamma_plus_one * hydro_one_over_gamma * (pstar / WR[4] - 1.f));
0.5f * hydro_gamma_plus_one * hydro_one_over_gamma *
(pstar / WR[4] - 1.f));
}
const float SL = uL - aL * qL;
const float SR = uR + aR * qR;
const float Sstar = (WR[4] - WL[4] + WL[0] * uL * (SL - uL) - WR[0] * uR * (SR - uR)) /
const float Sstar =
(WR[4] - WL[4] + WL[0] * uL * (SL - uL) - WR[0] * uR * (SR - uR)) /
(WL[0] * (SL - uL) - WR[0] * (SR - uR));
/* STEP 3: HLLC flux in a frame moving with the interface velocity */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment