Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Jul 26, 2023
1 parent a70fe90 commit 6cea067
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hydro_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ template <typename problem_t> auto HydroSystem<problem_t>::maxSignalSpeedLocal(a
if constexpr (is_eos_isothermal()) {
cs = cs_iso_;
} else {
const auto Etot = cons[bx](i, j, k, HydroSystem<problem_t>::energy_index);
const auto P = ComputePressure(cons[bx], i, j, k);
cs = std::sqrt(HydroSystem<problem_t>::gamma_ * P / rho);
}
Expand Down Expand Up @@ -235,7 +234,6 @@ void HydroSystem<problem_t>::ComputeMaxSignalSpeed(amrex::Array4<const amrex::Re
const auto E = cons(i, j, k, energy_index); // *total* gas energy per unit volume
AMREX_ASSERT(!std::isnan(E));
const auto kinetic_energy = 0.5 * rho * (vx * vx + vy * vy + vz * vz);
const auto thermal_energy = E - kinetic_energy;
const auto P = ComputePressure(cons, i, j, k);
cs = std::sqrt(HydroSystem<problem_t>::gamma_ * P / rho);
}
Expand Down

0 comments on commit 6cea067

Please sign in to comment.