Skip to content

Commit

Permalink
rename to match other variables
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Jul 31, 2023
1 parent d56711c commit 5157159
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HLLC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState<N_scalars> cons
double cs_tilde = NAN;
if (gamma != 1.0) {
// TODO(ben): implement Roe average for general EOS
const double C_star_P = 1.0 / (gamma - 1.0);
const double C_star_rho = 0.0;
const double C_tilde_P = 1.0 / (gamma - 1.0);
const double C_tilde_rho = 0.0;
// equation 4.12 of Kershaw+1998
cs_tilde = std::sqrt((1.0 / C_star_P) * (H_tilde - 0.5 * vsq_tilde - C_star_rho));
cs_tilde = std::sqrt((1.0 / C_tilde_P) * (H_tilde - 0.5 * vsq_tilde - C_tilde_rho));
} else {
cs_tilde = 0.5 * (sL.cs + sR.cs);
}
Expand Down

0 comments on commit 5157159

Please sign in to comment.