diff --git a/src/hydro_system.hpp b/src/hydro_system.hpp index 6bb5fd486..6140aa874 100644 --- a/src/hydro_system.hpp +++ b/src/hydro_system.hpp @@ -527,7 +527,8 @@ void HydroSystem::ComputeFlatteningCoefficients(amrex::MultiFab const // Z is a measure of shock strength (Eq. 76 of Miller & Colella 2002) amrex::GpuArray massScalars = RadSystem::ComputeMassScalars(primVar, i, j, k); - const double K_S = std::pow(quokka::EOS::ComputeSoundSpeed(primVar(i, j, k, primDensity_index), P, massScalars), 2) * primVar(i, j, k, primDensity_index); + const double K_S = std::pow(quokka::EOS::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)