From 132e008668786bfda8ea50c9c7644d370ca51800 Mon Sep 17 00:00:00 2001 From: Patrick Ersing <114223904+patrickersing@users.noreply.github.com> Date: Mon, 6 May 2024 17:53:26 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andrew Winters --- .../elixir_shallowwater_multilayer_dam_break_dry.jl | 2 +- src/callbacks_stage/positivity_shallow_water_dg2d.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/unstructured_2d_dgsem/elixir_shallowwater_multilayer_dam_break_dry.jl b/examples/unstructured_2d_dgsem/elixir_shallowwater_multilayer_dam_break_dry.jl index 5f9aa6f..3241dc1 100644 --- a/examples/unstructured_2d_dgsem/elixir_shallowwater_multilayer_dam_break_dry.jl +++ b/examples/unstructured_2d_dgsem/elixir_shallowwater_multilayer_dam_break_dry.jl @@ -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) diff --git a/src/callbacks_stage/positivity_shallow_water_dg2d.jl b/src/callbacks_stage/positivity_shallow_water_dg2d.jl index e92f362..9acdc4d 100644 --- a/src/callbacks_stage/positivity_shallow_water_dg2d.jl +++ b/src/callbacks_stage/positivity_shallow_water_dg2d.jl @@ -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,