Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Winters <[email protected]>
  • Loading branch information
patrickersing and andrewwinters5000 authored May 6, 2024
1 parent 19f7128 commit 132e008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function initial_condition_dam_break(x, t, equations::ShallowWaterMultiLayerEqua
# stays positive. The system would not be stable for h set to a hard 0 due to division by h in
# the computation of velocity, e.g., (h v) / h. Therefore, a small dry state threshold
# with a default value of 5*eps() ≈ 1e-15 in double precision, is set in the constructor above
# for the ShallowWaterMultiLayerEquations1D and added to the initial condition if h = 0.
# for the ShallowWaterMultiLayerEquations2D and added to the initial condition if h = 0.
# This default value can be changed within the constructor call depending on the simulation setup.
for i in reverse(eachlayer(equations))
if i == nlayers(equations)
Expand Down
1 change: 1 addition & 0 deletions src/callbacks_stage/positivity_shallow_water_dg2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function limiter_shallow_water!(u, threshold::Real, variable,

return nothing
end

# !!! warning "Experimental code"
# This is an experimental feature and may change in future releases.
function limiter_shallow_water!(u, threshold::Real, variable,
Expand Down

0 comments on commit 132e008

Please sign in to comment.