Repository navigation
Terminate community callback on either crossing - #4319
Merged
ChrisRackauckas merged 1 commit intoAug 20, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Restore the community callback test's stated behavior: terminate on the first nonzero vector-continuous-callback crossing, regardless of direction. The test currently checks
any(isone, events), so it ignores the-1downcrossing at π/2 and terminates at the next+1upcrossing near 3π/2.This is a test correction for the documented event-direction convention, not a tolerance change or solver behavior change.
Ignore this PR until reviewed by @ChrisRackauckas.
Failing before
The exact community example on clean current master returns the second crossing:
The test predicate regression begins at b35b3c3, merged through #3914. That commit changed
any(!iszero, events)toany(isone, events)while retaining the expected time π/2.Passing after
The identical reproducer with the corrected predicate terminates on the first crossing:
The full owning Downstream2 group passes:
The full DiffEqBase QA group also passes:
Runic over the changed test file, typos over the diff, and
git diff --checkpassed. No version bump is needed for a test-only correction.Not verified
GPU and Julia version-matrix jobs were not run locally. No docs build was run because this changes no public API, docstring, or documentation.