Skip to content

Commit

Permalink
remove declaration of P_L
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Jul 28, 2023
1 parent 0bfb82e commit a50ea5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hydro_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,9 @@ void HydroSystem<problem_t>::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<Real, nmscalars_> massScalars = RadSystem<problem_t>::ComputeMassScalars(x1LeftState, i, j, k);
const double P_L = quokka::EOS<problem_t>::ComputePressure(rho_L, eint_L * rho_L, massScalars);
P_L = quokka::EOS<problem_t>::ComputePressure(rho_L, eint_L * rho_L, massScalars);
massScalars = RadSystem<problem_t>::ComputeMassScalars(x1RightState, i, j, k);
const double P_R = quokka::EOS<problem_t>::ComputePressure(rho_R, eint_R * rho_R, massScalars);
P_R = quokka::EOS<problem_t>::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);
Expand Down

0 comments on commit a50ea5a

Please sign in to comment.