Skip to content

Bump stale ESDIRK lorenz step-count bounds (fixes #3669) - #3680

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-3669-stale-esdirk-regression-bounds
May 26, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-3669-stale-esdirk-regression-bounds

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Fixes #3669.

Summary

test/regression/ode_adaptive_tests.jl had stale step-count guards for ESDIRK547L2SA2() and ESDIRK659L2SA() on prob_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) < 10 on ESDIRK659L2SA — was already flipped to plain @test in #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:

Failure Pre-#3662 Post-#3662 (current master) Cause
ESDIRK659L2SA prob_ode_linear @test_broken < 10 3554 steps, Success 5 steps, Success #3662
ESDIRK659L2SA prob_lorenz < 1000 MaxIters at 999386 1146 steps, Success #3662
ESDIRK547L2SA2 prob_lorenz < 1000 1010 steps, Success 1010 steps, Success NOT #3662

#3662 fixed ESDIRK659L2SA's embedded btilde coefficients so its adaptive estimator works. That improved both its prob_ode_linear (3554 → 5 steps) and prob_lorenz behavior (MaxIters → 1146) — both ESDIRK659L2SA failures stem from this.

The ESDIRK547L2SA2 failure is older and unrelated. The < 1000 bound 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 because Regression_I only runs on PRs, not master pushes.

Test plan

  • Local verification: both solve(prob_lorenz, ESDIRK547L2SA2()) and solve(prob_lorenz, ESDIRK659L2SA()) return Success with the new bounds.
  • Runic clean.
  • CI Regression_I group passes.

🤖 Generated with Claude Code

`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
ChrisRackauckas marked this pull request as ready for review May 26, 2026 09:22
@ChrisRackauckas
ChrisRackauckas merged commit 66b4561 into SciML:master May 26, 2026
66 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression_I: stale ESDIRK assertions in ode_adaptive_tests.jl (@test_broken + lorenz step bounds)

2 participants