-
Notifications
You must be signed in to change notification settings - Fork 1
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
WIP: Fix bug in the semi-discrete entropy limiter #133
base: subcell-limiting
Are you sure you want to change the base?
WIP: Fix bug in the semi-discrete entropy limiter #133
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. |
surface_flux = flux_ranocha | ||
volume_flux = flux_ranocha |
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.
Is there another difference between the two new elixirs than just the volume flux?
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.
If no, we could just adapt the volume flux in the tests and remove one of the elixirs.
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.
Ah, I see that it is not even tested. Could you maybe add some test?
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.
The examples here are not meant to be tests (yet), but a proof of concept for debugging. They show that there is an error in the current implementation in the branch subcell-limiting
: We get entropy production in these two tests with entropy_limiter_semidiscrete = true
. That is wrong.
My "fix" causes entropy_limiter_semidiscrete = true
to dissipate entropy in these two tests, but that is not enough to show that this is the only/correct fix that needs to be done. However, I don't know how to design a more definitive test.
I saw that two tests in |
Yes, I'll update the reference values. |
In this PR, I propose a fix for the semi-discrete entropy limiter.
Thanks @weil4 for noticing the problem!