Skip to content

Fix the sub-cache used by in-place interpolation for alg_choice 2 and 4 - #4556

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:default-inplace-interpolation
Sep 13, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:default-inplace-interpolation

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

Fixes #4555

The in-place ode_interpolation! picked cache.caches[2] for alg_choice == 2 and cache.cache5 for alg_choice == 4 in the DefaultCache branch, so sol(out, t) threw on intervals stepped by Vern7 or Rodas5P. The out-of-place path and the _ode_addsteps! calls next to these lines already use cache2 and cache4.

The test solves the 2D linear problem and Robertson at tolerances that select choices 1, 2, 1+3 and 2+4 and checks the in-place interpolation against the out-of-place one on every interval.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 13, 2026 19:31
@ChrisRackauckas
ChrisRackauckas merged commit 40a67dc into SciML:master Sep 13, 2026
253 of 262 checks passed
@utkuyilmaz1903
utkuyilmaz1903 deleted the default-inplace-interpolation branch September 13, 2026 20:01
ChrisRackauckas added a commit that referenced this pull request Sep 14, 2026
- Fix SBDF order ramp, history-shift timing, and dt-change reset (#4366)
- Release OrdinaryDiffEqBDF 2.4.10 (#4558)
- Fix the sub-cache used by in-place interpolation for alg_choice 2 and 4 (#4556)
- Reuse the finite-difference JVP base evaluation across a linear solve (#4287)
- only allow diagonal M for ESDIRK (#4560)



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]>
ChrisRackauckas added a commit that referenced this pull request Sep 14, 2026
- Raise OrdinaryDiffEqNonlinearSolve floor for stage_predictor (#4554)
- Release OrdinaryDiffEqCore 4.17.3 (#4557)
- Fix SBDF order ramp, history-shift timing, and dt-change reset (#4366)
- Release OrdinaryDiffEqBDF 2.4.10 (#4558)
- Fix the sub-cache used by in-place interpolation for alg_choice 2 and 4 (#4556)
- Reuse the finite-difference JVP base evaluation across a linear solve (#4287)
- only allow diagonal M for ESDIRK (#4560)



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]>
ChrisRackauckas added a commit that referenced this pull request Sep 14, 2026
- Fix SBDF order ramp, history-shift timing, and dt-change reset (#4366)
- Release OrdinaryDiffEqBDF 2.4.10 (#4558)
- Fix the sub-cache used by in-place interpolation for alg_choice 2 and 4 (#4556)
- Reuse the finite-difference JVP base evaluation across a linear solve (#4287)
- only allow diagonal M for ESDIRK (#4560)



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]>
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.

In-place interpolation uses the wrong sub-cache for alg_choice 2 and 4 with the default algorithm

2 participants