Repository navigation
Filter derivative discontinuities before the initial time - #4258
Merged
ChrisRackauckas merged 1 commit intoAug 14, 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.
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed and why
Filter derivative-discontinuity entries that lie before the initial time in the integration direction when initializing or reinitializing the internal queue. Entries at the initial time and beyond the final time remain unchanged, and the same rule is applied for forward and reverse integration.
A stale pre-
t0entry otherwise remains permanently at the head of the queue. For DDEs, that blocks later propagated discontinuities from being handled, leaves a propagatedtstopat zero distance, and terminates the solve withDtLessThanMin.This follows the resolution chosen in #4199 (comment): discard entries before
t0instead of propagating history discontinuities.Closes #4199
Failing before
I retained the new regression tests, temporarily restored the unfixed queue initialization, and ran:
GROUP=DelayDiffEq_Interface /home/crackauc/.juliaup/bin/julia +1.12 --project --color=no -e 'using Pkg; Pkg.test()'The pre-
t0DDE stopped at its first propagated discontinuity:Passing after
On final commit
a5c928b269b506f48df065b4aa085adfbfa82dda:GROUP=DelayDiffEq_Interface /home/crackauc/.juliaup/bin/julia +1.12 --project --color=no -e 'using Pkg; Pkg.test()'The Core group covers forward filtering, reverse filtering, preservation of
t0and post-tfentries, and reinitialization:GROUP=OrdinaryDiffEqCore_Core /home/crackauc/.juliaup/bin/julia +1.12 --project --color=no -e 'using Pkg; Pkg.test()'QA also passed:
GROUP=QA /home/crackauc/.juliaup/bin/julia +1.12 --project --color=no -e 'using Pkg; Pkg.test()'Runic over all three changed Julia files,
typosover the diff, andgit diff --checkall exited 0.The full documentation command also exited 0 through cross-references and HTML rendering:
That docs validation used the local SciMLBase documentation-fix stack for the independently reproduced
ODENLStepData,AutoRespecialize, and deadProblem_Traitslinks. It did not disable or downgrade any Documenter checks.Not verified
I did not run
GROUP=Everything, GPU jobs, or downstream-package jobs. No dependency or public name was added.