Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 1, 2023
1 parent e26a677 commit 6c908cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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, N_ms
const double H_tilde = (wl * H_L + wr * H_R) * norm;
double cs_tilde = NAN;

// compute nonlinear wavespeed correction [Rider, Computers & Fluids 28 (1999) 741-777]
// (Only applicable in compressions. Significantly reduces slow-moving shock oscillations.)
// compute nonlinear wavespeed correction [Rider, Computers & Fluids 28 (1999) 741-777]
// (Only applicable in compressions. Significantly reduces slow-moving shock oscillations.)

const double dU = sL.u - sR.u;
const double dU = sL.u - sR.u;
double S_L = NAN;
double S_R = NAN;
if (gamma != 1.0) {
Expand All @@ -57,8 +57,8 @@ AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState<N_scalars, N_ms
// equation 4.12 of Kershaw+1998
cs_tilde = std::sqrt((1.0 / C_tilde_P) * (H_tilde - 0.5 * vsq_tilde - C_tilde_rho));

const double G_L = 0.5 * (G_gamma_L + 1.); // 'fundamental derivative' for ideal gases
const double G_R = 0.5 * (G_gamma_R + 1.); // 'fundamental derivative' for ideal gases
const double G_L = 0.5 * (G_gamma_L + 1.); // 'fundamental derivative' for ideal gases
const double G_R = 0.5 * (G_gamma_R + 1.); // 'fundamental derivative' for ideal gases

const double s_NL = 0.5 * G_L * std::max(dU, 0.); // second-order wavespeed correction
const double s_NR = 0.5 * G_R * std::max(dU, 0.);
Expand Down

0 comments on commit 6c908cf

Please sign in to comment.