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 Jul 27, 2023
1 parent cdd18da commit 54723a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hydro_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ void HydroSystem<problem_t>::ComputeFlatteningCoefficients(amrex::MultiFab const

// Z is a measure of shock strength (Eq. 76 of Miller & Colella 2002)
amrex::GpuArray<Real, nmscalars_> massScalars = RadSystem<problem_t>::ComputeMassScalars(primVar, i, j, k);
const double K_S = std::pow(quokka::EOS<problem_t>::ComputeSoundSpeed(primVar(i, j, k, primDensity_index), P, massScalars), 2) * primVar(i, j, k, primDensity_index);
const double K_S = std::pow(quokka::EOS<problem_t>::ComputeSoundSpeed(primVar(i, j, k, primDensity_index), P, massScalars), 2) *
primVar(i, j, k, primDensity_index);
const double Z = std::abs(Pplus1 - Pminus1) / K_S;

// check for converging flow along the normal direction DIR (Eq. 77)
Expand Down

0 comments on commit 54723a3

Please sign in to comment.