Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
JoshuaLampert and ranocha authored Aug 29, 2024
1 parent 606e74e commit 1fce07e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/semidiscretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ end
function check_bathymetry(equations, q0)
if equations.bathymetry_type isa BathymetryFlat
_, _, D = q0.x
if !all(x -> x == first(D), D)
value = first(D)
if !all(==(value), D)
throw(ArgumentError("If the bathymetry is flat, the bathymetry should be constant."))
end
end
Expand Down

0 comments on commit 1fce07e

Please sign in to comment.