Repository navigation
Fix Rosenbrock interpolation after callback truncation - #4411
Merged
ChrisRackauckas merged 1 commit intoAug 28, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Rebuild combined Rosenbrock stages from the actual previous state and avoid adding the derivative twice in mass-matrix stage accumulation. Add callback-truncation regressions for mass-matrix DAEs and out-of-place ODEs. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]> Agent-Harness: Codex API (version unknown) Agent-Model: unknown Agent-Session: unknown
ChrisRackauckas
marked this pull request as ready for review
August 28, 2026 05:16
5 tasks done
This was referenced Sep 8, 2026
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 11, 2026
- Fix definite assignment in ROCK stages (#4321) - Correct NonlinearSolve downgrade dependency floors (#4394) - Fix ensemble work-precision error storage (#4390) - Add explicit benchmark tag semantics (#4402) - fix: require cache-aware nonlinear solver in PDIRK (#4406) - fix: accept SciML caches in nlsolve! (#4407) - Support generic callback event storage (#4398) - test: account for Hairer4 BLAS variation (#4410) - Fix Rosenbrock interpolation after callback truncation (#4411) - Fix weak Platen methods for scalar Wiener processes (#4413) 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.
What changed and why
Callback truncation asks
addsteps!to reconstruct Rosenbrock interpolation stages for the shortened final step. The out-of-place path evaluated the first stage at a scratch state instead ofuprev, while the mutable mass-matrix path seeded its stage accumulator withduand therefore added an extraM * du. This changes those two expressions and adds a fixed-step callback regression covering Rodas4, Rodas4P, and Rodas5P for in-place/out-of-place mass-matrix DAEs and an out-of-place ODE.Verification
Failing before the fix
The DAE midpoint should be
0.65; the unfixed Rodas4/Rodas4P/Rodas5P results were0.37279301599954645,0.18292522392043037, and0.7915660962809313. The out-of-place ODE midpoint errors were also reproduced for all three algorithms.Passing with the fix
Runic (
--check --diff),typos, andgit diff --checkalso passed.Original LyoPronto reproducer
Using LyoPronto commit
b907e35dbefbc010a2f742dddadc0f480a7a529f, 1,001 dense-output samples over the final callback-truncated step had zero overshoot and zero increasing intervals for Rodas4, Rodas4P, and Rodas5P.Not verified
GPU and downstream-package test groups were not run. No documentation build was run because the change does not touch documentation or public API.
🤖 Generated with Codex API (model: unknown; session: unknown).