diff --git a/src/equations/compressible_euler_quasi_1d.jl b/src/equations/compressible_euler_quasi_1d.jl index a3685af11ce..b99226f4abe 100644 --- a/src/equations/compressible_euler_quasi_1d.jl +++ b/src/equations/compressible_euler_quasi_1d.jl @@ -360,11 +360,7 @@ end @inline function pressure(u, equations::CompressibleEulerEquationsQuasi1D) a_rho, a_rho_v1, a_e, a = u - rho = a_rho / a - v1 = a_rho_v1 / a_rho - e = a_e / a - p = (equations.gamma - 1) * (e - 0.5 * rho * v1^2) - return p + return pressure(SVector(a_rho, a_rho_v1, a_e) / a, CompressibleEulerEquations1D(equations.gamma)) end @inline function density_pressure(u, equations::CompressibleEulerEquationsQuasi1D)