Skip to content

Commit

Permalink
Update src/equations/polytropic_euler_2d.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Winters <[email protected]>
  • Loading branch information
SimonCan and andrewwinters5000 authored Jan 30, 2024
1 parent b659ce2 commit 8c5eb3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/equations/polytropic_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ end
v_rr = v2_rr
end
# Calculate sound speeds
c_ll = sqrt(equations.gamma * equations.gamma * rho_ll^(equations.gamma - 1))
c_rr = sqrt(equations.gamma * equations.gamma * rho_rr^(equations.gamma - 1))
c_ll = sqrt(equations.gamma * equations.kappa * rho_ll^(equations.gamma - 1))
c_rr = sqrt(equations.gamma * equations.kappa * rho_rr^(equations.gamma - 1))

λ_max = max(abs(v_ll), abs(v_rr)) + max(c_ll, c_rr)
end
Expand Down

0 comments on commit 8c5eb3b

Please sign in to comment.