Repository navigation
Do not seed a retry from the previous-step interpolant - #4473
Merged
Merged
Conversation
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520) - Add adaptive step size control to SDC (#4346) - Allow JET 0.12 in every QA test environment (#4513) - Resolve OrdinaryDiffEqDefault against the local sublibraries (#4514) - NonlinearSolveAlg: stale-Jacobian retry + rejected-step W reassembly (carries #4282 to current master) (#4505) - Do not seed a retry from the previous-step interpolant (#4473) - Say why the linear path ignores new_W_dt_cutoff (#4527) - Carry the QNDF2 difference array across steps (#4526) - Pass Θ = 0, not the absolute time, to the AN5 startup interpolant (#4534) - Make the stabilized-RK step cap and eigenvalue tolerance direction-agnostic (#4536) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[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.
The
MaxOrder,VariableOrderandCutoffOrderpredictors seed a stage from the previous-step interpolant built out ofintegrator.k, but a rejected attempt overwriteskand nothing resets it before the retry, so the seed is built from the failed attempt's data; they now fall back to the zero seed whenintegrator.last_stepfailis set, as they already do before the first step.Across 3 problems, 12 methods and those 3 predictors, 23 of 108 configurations abort with
ReturnCode.Unstableon master, including KenCarp3/4/5, Kvaerno3/4/5, ESDIRK437L2SA, ESDIRK547L2SA2, ESDIRK659L2SA and TRBDF2. All 23 pass here. Printing the seed across four consecutive attempts at onetshowsintegrator.k[2]going 0.5 to 7.6e27 to 5.1e122 toInfwhileuprevanduprev2stay at[1.0000004, 0.9999985], after which every retry seedsNaNanddtruns down toeps.Over the full 288-configuration sweep with all 8 predictors, 258 results are bit-identical to master, 23 go from
UnstabletoSuccess, none regress, and 7 shift while still succeeding: Hairer4 withMaxOrderon ROBER drops from 19617 Newton iterations to 11983.The regression test solves ROBER with KenCarp4 and Lotka-Volterra with TRBDF2 under all three predictors; 4 of its 6 cases fail on master.
Fixes #4472.
AI Disclosure: Claude assisted with this change.