diff --git a/src/hydro_system.hpp b/src/hydro_system.hpp index 64adf55a1..bfcd0d1b1 100644 --- a/src/hydro_system.hpp +++ b/src/hydro_system.hpp @@ -493,15 +493,19 @@ void HydroSystem::ComputeFlatteningCoefficients(amrex::MultiFab const if constexpr (reconstruct_eint) { // compute (rho e) (gamma - 1) amrex::GpuArray massScalars = RadSystem::ComputeMassScalars(primVar, i + 2, j, k); - Pplus2 = quokka::EOS::ComputePressure(primVar(i + 2, j, k, primDensity_index), primVar(i + 2, j, k, primDensity_index)*Pplus2, massScalars); + Pplus2 = quokka::EOS::ComputePressure(primVar(i + 2, j, k, primDensity_index), + primVar(i + 2, j, k, primDensity_index) * Pplus2, massScalars); massScalars = RadSystem::ComputeMassScalars(primVar, i + 1, j, k); - Pplus1 = quokka::EOS::ComputePressure(primVar(i + 1, j, k, primDensity_index), primVar(i + 1, j, k, primDensity_index)*Pplus1, massScalars); + Pplus1 = quokka::EOS::ComputePressure(primVar(i + 1, j, k, primDensity_index), + primVar(i + 1, j, k, primDensity_index) * Pplus1, massScalars); massScalars = RadSystem::ComputeMassScalars(primVar, i, j, k); - P = quokka::EOS::ComputePressure(primVar(i, j, k, primDensity_index), primVar(i, j, k, primDensity_index)*P, massScalars); + P = quokka::EOS::ComputePressure(primVar(i, j, k, primDensity_index), primVar(i, j, k, primDensity_index) * P, massScalars); massScalars = RadSystem::ComputeMassScalars(primVar, i - 1, j, k); - Pminus1 = quokka::EOS::ComputePressure(primVar(i - 1, j, k, primDensity_index), primVar(i - 1, j, k, primDensity_index)*Pminus1, massScalars); + Pminus1 = quokka::EOS::ComputePressure(primVar(i - 1, j, k, primDensity_index), + primVar(i - 1, j, k, primDensity_index) * Pminus1, massScalars); massScalars = RadSystem::ComputeMassScalars(primVar, i - 2, j, k); - Pminus2 = quokka::EOS::ComputePressure(primVar(i - 2, j, k, primDensity_index), primVar(i - 2, j, k, primDensity_index)*Pminus2, massScalars); + Pminus2 = quokka::EOS::ComputePressure(primVar(i - 2, j, k, primDensity_index), + primVar(i - 2, j, k, primDensity_index) * Pminus2, massScalars); } if constexpr (is_eos_isothermal()) {