Closed DanielDoehring closed 7 months ago
This 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.
NEWS.md
.Created with :heart: by the Trixi.jl community.
Attention: Patch coverage is 78.57143%
with 6 lines
in your changes are missing coverage. Please review.
Project coverage is 89.38%. Comparing base (
27d91b3
) to head (a7cb1ea
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/callbacks_step/nan.jl | 76.92% | 6 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Shall we really use another callback for this? I think it may be better to use the same approach as OrdinaryDiffEq.jl and allow more arguments to solve
- in particular an unstable_check
that could just be our ode_unstable_check
. See
and
Shall we really use another callback for this? I think it may be better to use the same approach as OrdinaryDiffEq.jl and allow more arguments to
solve
- in particular anunstable_check
that could just be ourode_unstable_check
. Seeand
I briefly looked into this, but I personally find this approach less intuitive than using a callback. Plus, I think overall more code changes would be necessary.
Having merged https://github.com/trixi-framework/Trixi.jl/pull/1781 we have return now by default
NaN
if there are negative arguments tosqrt
andlog
. Opposed to the integrators from OrdinaryDiffEq.jl which come with anunstable_check
that is effectively a NaN-check using the built-inany
function the custom integrators in Trixi do not check by default for NaN and thus a simulation continues although it is already corrupted.This PR adds a NaN callback which is recommended to use when using
Trixi.solve
.I am not sure if we want to use
@trixi_timeit timer()
as the cb should be really cheap assuming an effective divide & conquer implementation ofany
.