From f6c822ad971eb6495fddfccb30033bbc0d705345 Mon Sep 17 00:00:00 2001 From: Krissh Chawla <127906314+KrisshChawla@users.noreply.github.com> Date: Sat, 25 Nov 2023 13:14:50 -0600 Subject: [PATCH] Update src/equations/compressible_euler_quasi_1d.jl Co-authored-by: Jesse Chan <1156048+jlchan@users.noreply.github.com> --- src/equations/compressible_euler_quasi_1d.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)