From a50ea5a6494bb284291c808dd910662f4af9327e Mon Sep 17 00:00:00 2001 From: psharda Date: Fri, 28 Jul 2023 14:05:55 +0200 Subject: [PATCH] remove declaration of P_L --- src/hydro_system.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydro_system.hpp b/src/hydro_system.hpp index 76628ff12..d5e4b11db 100644 --- a/src/hydro_system.hpp +++ b/src/hydro_system.hpp @@ -856,9 +856,9 @@ void HydroSystem::ComputeFluxes(amrex::MultiFab &x1Flux_mf, amrex::Mu const double eint_L = x1LeftState(i, j, k, pressure_index); const double eint_R = x1RightState(i, j, k, pressure_index); amrex::GpuArray massScalars = RadSystem::ComputeMassScalars(x1LeftState, i, j, k); - const double P_L = quokka::EOS::ComputePressure(rho_L, eint_L * rho_L, massScalars); + P_L = quokka::EOS::ComputePressure(rho_L, eint_L * rho_L, massScalars); massScalars = RadSystem::ComputeMassScalars(x1RightState, i, j, k); - const double P_R = quokka::EOS::ComputePressure(rho_R, eint_R * rho_R, massScalars); + P_R = quokka::EOS::ComputePressure(rho_R, eint_R * rho_R, massScalars); // auxiliary Eint is actually (auxiliary) specific internal energy Eint_L = rho_L * x1LeftState(i, j, k, primEint_index);