-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wet/dry functionality for the Multilayer SWE in 1D #38
Add wet/dry functionality for the Multilayer SWE in 1D #38
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #38 +/- ##
==========================================
- Coverage 99.26% 99.23% -0.04%
==========================================
Files 50 54 +4
Lines 2054 2228 +174
==========================================
+ Hits 2039 2211 +172
- Misses 15 17 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @patrickersing ! Having positivity across multiple layers is a great new feature. I left a few comments and opened a discuss about having different threshold quantities across the different variants of the wet/dry capabilities.
examples/tree_1d_dgsem/elixir_shallowwater_multilayer_dam_break_es_dry.jl
Show resolved
Hide resolved
examples/tree_1d_dgsem/elixir_shallowwater_multilayer_well_balanced_wet_dry.jl
Show resolved
Hide resolved
examples/tree_1d_dgsem/elixir_shallowwater_multilayer_well_balanced_wet_dry.jl
Outdated
Show resolved
Hide resolved
It seems that the Mac CI tests are failing due to too strict tolerances. We should keep an eye on this because it would be very annoying (and concerning) if we need to soften the tolerances on so many tests. |
I have softened the tolerances in 2857753 and the CI now passes (at least in the recent run). I do not really see another alternative to fix the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall @patrickersing ! The only hanging question is related to the (mysterious) reason why lines that should be covered are reported as uncovered.
Co-authored-by: Andrew Winters <[email protected]>
@ranocha These lines are definitely called during testing and the respective function calls also show up as covered, so we expect coverage. The same problem also appears for a similar function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! The small coverage drop is due to spurious lines that should be reported as covered but are not as discussed above.
583a372
into
trixi-framework:main
This PR adds wet/dry functionality to the
ShallowWaterMultiLayerEquations1D
.The new functionality includes support for shock-capturing, a positivity-limiter and the new
hydrostatic_reconstruction_ersing_etal
as well as corresponding tests and examples.The general strategy follows the implementation of the
ShallowWaterEquationsWetDry1D
. However, in contrast to theShallowWaterEquationsWetDry1D
the positivity-limiter is applied layerwise and only acts on the water heightsh
(the momentum remains unchanged) and a velocity desingularization is applied to avoid numerical problems near dry states. The specific implementation of the positivity-limiter is still experimental and might change.The new hydrostatic reconstruction can be used to create an entropy-stable and well-balanced scheme if the surface flux is set to