We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1bb61e commit ee8e918Copy full SHA for ee8e918
src/equations/shallow_water_3d.jl
@@ -425,7 +425,8 @@ end
425
c_rr = sqrt(max(equations.gravity * h_rr, 0.0f0))
426
427
# The normal velocities are already scaled by the norm
428
- return max(abs(v_ll) + c_ll, abs(v_rr) + c_rr) * norm(normal_direction)
+ norm_ = norm(normal_direction)
429
+ return max(abs(v_ll) + c_ll * norm_, abs(v_rr) + c_rr * norm_)
430
end
431
432
# Specialized `DissipationLocalLaxFriedrichs` to avoid spurious dissipation in the bottom topography
0 commit comments