Skip to content

Commit

Permalink
Update src/equations/compressible_euler_quasi_1d.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Chan <[email protected]>
  • Loading branch information
KrisshChawla and jlchan authored Nov 25, 2023
1 parent 8190208 commit f6c822a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/equations/compressible_euler_quasi_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6c822a

Please sign in to comment.