Repository navigation
Reject a t change that lands behind a saved solution point - #4580
Merged
ChrisRackauckas merged 1 commit intoSep 17, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
singhharsh1708
force-pushed
the
core-reject-rewind-behind-saved-point
branch
from
September 17, 2026 11:09
567135f to
760481c
Compare
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.
change_t_via_interpolation!now refuses to move the integrator behind a point the solution already holds, instead of leavingsol.tout of order.save_positions[1]stores the step end beforeaffect!runs, so a callback that rewound inside its own step putintegrator.tbehindsol.t[end], and interpolating across the inverted pair returned a value from the wrong side of the step withretcode = Success.On the repro in #4579 that solve now errors, where it used to return
sol(1.9925) = 1.1289against an exact 0.1363.The
Val{true}rewind inhandle_tstop!stays exempt because it repairs the endpoint itself, and a continuous callback's root find is unaffected since the step it rewinds into has not been saved yet; both are covered by the new tests.Fixes #4579.
AI Disclosure: Claude assisted with this change.