-
Notifications
You must be signed in to change notification settings - Fork 112
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 implementation of subcell bounds check #1672
Add implementation of subcell bounds check #1672
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1672 +/- ##
==========================================
+ Coverage 86.47% 87.21% +0.73%
==========================================
Files 423 425 +2
Lines 34312 34379 +67
==========================================
+ Hits 29671 29981 +310
+ Misses 4641 4398 -243
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
The implementation for exporting the deviations when |
I think everything that is useful for a future scientist/developer/debugger would make sense to keep. And yes, if you want to keep it, you should at least use it and check that a file was actually created. |
I added a test to check the output file. Is that okay like this or am I missing something? @sloede |
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.
Idk, I can't really say much about this PR. I would have to spend more time to really work myself through the details.
Revise calculation of bound check; Replace construction of Symbols
This PR adds the implementation of a subcell local bounds check. Rn, now it only contains the check for positivity bounds since it's the only feature merged to
main
.It is implemented as a stage callback. Therefore, the solution before the convex combination in the SSPRK method is checked. This is sufficient since it is a convex combination and the previous solution is already checked.
BUT: The stage callback has to be called after
SubcellLimiterIDPCorrection
to obtain a meaningful test.At the end of the simulation, the following output is added:
If
save_errors=true
the deviations of the last stage in every time step is saved into a text file.I just found an error in a note in the docstring of
SubcellLimiterIDP
. If the correction stage callback is no enabled, we do not get a DGSEM but a FV scheme. I fixed it in this PR.