diff --git a/src/equations/polytropic_euler_2d.jl b/src/equations/polytropic_euler_2d.jl index 233b599cd20..e900fd64073 100644 --- a/src/equations/polytropic_euler_2d.jl +++ b/src/equations/polytropic_euler_2d.jl @@ -330,12 +330,12 @@ end # Calculate normal velocities and sound speed (we have p = kappa * rho^gamma) # left - v_ll = v1_ll * normal_direction[1] + - v2_ll * normal_direction[2] + v_ll = (v1_ll * normal_direction[1] + + v2_ll * normal_direction[2]) c_ll = sqrt(equations.gamma * equations.kappa * rho_ll^(equations.gamma - 1)) # right - v_rr = v1_rr * normal_direction[1] + - v2_rr * normal_direction[2] + v_rr = (v1_rr * normal_direction[1] + + v2_rr * normal_direction[2]) c_rr = sqrt(equations.gamma * equations.kappa * rho_rr^(equations.gamma - 1)) return max(abs(v_ll), abs(v_rr)) + max(c_ll, c_rr) * norm(normal_direction)