Skip to content

Commit ee8e918

Browse files
committed
fixup
1 parent f1bb61e commit ee8e918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/equations/shallow_water_3d.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ end
425425
c_rr = sqrt(max(equations.gravity * h_rr, 0.0f0))
426426

427427
# 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)
428+
norm_ = norm(normal_direction)
429+
return max(abs(v_ll) + c_ll * norm_, abs(v_rr) + c_rr * norm_)
429430
end
430431

431432
# Specialized `DissipationLocalLaxFriedrichs` to avoid spurious dissipation in the bottom topography

0 commit comments

Comments
 (0)