Repository navigation
Bump stale ESDIRK lorenz step-count bounds (fixes #3669) - #3680
Merged
ChrisRackauckas merged 1 commit intoMay 26, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
`test/regression/ode_adaptive_tests.jl` ran in the `Regression_I` CI group but the group is only triggered on PRs, not on master pushes — so the failing assertions in SciML#3669 sat latent for a long time. Two distinct causes: * **ESDIRK659L2SA failures (linear `@test_broken < 10`, lorenz `< 1000`)**: caused by SciML#3662, which fixed the embedded `btilde` coefficients so adaptive solves actually work. Before SciML#3662, the estimator was wrong: `prob_ode_linear` took 3554 steps and `prob_lorenz` MaxIters'd at 999386 steps. After SciML#3662, both succeed but at counts that breach the old guards (5 steps and 1146 steps respectively). SciML#3676 already flipped the linear `@test_broken` to `@test`; this PR bumps the lorenz guard to `< 1200`. * **ESDIRK547L2SA2 lorenz `< 1000` failure**: NOT from SciML#3662. Checked against commits before SciML#3662 (`c4a8a493e~1`: 1010 steps) and before the March 2026 IMEX-tableau migration (`626639322~1`: 1007 steps) — the bound has been breached for months. ESDIRK547L2SA2's `< 1000` was set when the method was added in Feb 2023 (`4b56c4ef3`); the algorithm has since drifted to ~1010 across the 2026 SDIRK/nlsolver refactors. Bumping to `< 1100` leaves comfortable headroom. Verified locally — both solves return `Success`, step counts are 1010 and 1146 on the current master. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
May 26, 2026 09:22
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.
Fixes #3669.
Summary
test/regression/ode_adaptive_tests.jlhad stale step-count guards forESDIRK547L2SA2()andESDIRK659L2SA()onprob_lorenz. Both bumped to leave comfortable headroom:ESDIRK547L2SA2:< 1000→< 1100(current: 1010 steps)ESDIRK659L2SA:< 1000→< 1200(current: 1146 steps)The third failure listed in #3669 —
@test_broken length(sol_linear.u) < 10onESDIRK659L2SA— was already flipped to plain@testin #3676.Please ignore this PR until reviewed by @ChrisRackauckas.
Root cause investigation
The three failures in #3669 have two distinct causes, not one. Verified by bisecting:
prob_ode_linear@test_broken < 10prob_lorenz< 1000prob_lorenz< 1000#3662 fixed
ESDIRK659L2SA's embeddedbtildecoefficients so its adaptive estimator works. That improved both itsprob_ode_linear(3554 → 5 steps) andprob_lorenzbehavior (MaxIters → 1146) — both ESDIRK659L2SA failures stem from this.The
ESDIRK547L2SA2failure is older and unrelated. The< 1000bound was set when the method was added in Feb 2023 (4b56c4ef3); the algorithm has drifted to ~1010 across the 2026 SDIRK/nlsolver refactors. It went unnoticed becauseRegression_Ionly runs on PRs, not master pushes.Test plan
solve(prob_lorenz, ESDIRK547L2SA2())andsolve(prob_lorenz, ESDIRK659L2SA())returnSuccesswith the new bounds.Regression_Igroup passes.🤖 Generated with Claude Code