Skip to content

Fix the AitkenNeville evaluation count and array states - #4428

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
singhharsh1708:fix-extrapolation-nf-count
Aug 29, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
singhharsh1708:fix-extrapolation-nf-count

Conversation

@singhharsh1708

Copy link
Copy Markdown
Member

Two AitkenNeville fixes.
The threaded branch charged increment_nf!(stats, 2)^max_order - 1, which adds 2 and throws the power away, so threading = true reported 31 function evaluations for a 10-step fixed-dt solve where the serial branch reports 81 at max_order = 3 and 321 at max_order = 5; it now charges 2^max_order - 1 per step and the two branches agree at every order.
The constant cache filled its extrapolation table with T .= u, which is a DimensionMismatch for any array state; out-of-place AitkenNeville with a vector u0 now solves, matching every other extrapolation method, which already handled that case.
Both have tests; the Extrapolation suite passes locally (296 tests), and its two Aqua failures reproduce on master.
AI Disclosure: Claude assisted with this change.

@singhharsh1708
singhharsh1708 marked this pull request as ready for review August 29, 2026 22:00
@ChrisRackauckas
ChrisRackauckas merged commit da27506 into SciML:master Aug 29, 2026
260 of 265 checks passed
@singhharsh1708
singhharsh1708 deleted the fix-extrapolation-nf-count branch August 30, 2026 06:36
ChrisRackauckas added a commit that referenced this pull request Sep 10, 2026
- Document the limiter keywords with their real names (#4427)
- Tighten the AdaptiveRadau Newton tolerance with the stage count (#4431)
- Fix the AitkenNeville evaluation count and array states (#4428)
- Fix crashes when a cache holds a vector of nonlinear solvers (#4345)
- Tag the AD type for adaptive exponential algorithms (#4429)
- Release 7.20.0 (#4432)
- Release 3.6.1 (#4433)
- Release 2.3.1 (#4434)
- treat AutoSparse(ForwardDiff) as ForwardDiff (#4422)
- Correct skipped sublibrary version numbers (#4435)



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 11, 2026
- Format clean-master drift with Runic 1.10 (#4423)
- Reformat six files for Runic 1.10 (#4424)
- Refresh FSAL derivatives after solve-level step limiters (#4035)
- Require SciMLBase 3.46 where AutoDespecialize is used (#4426)
- Document the limiter keywords with their real names (#4427)
- Tighten the AdaptiveRadau Newton tolerance with the stage count (#4431)
- Fix the AitkenNeville evaluation count and array states (#4428)
- Fix crashes when a cache holds a vector of nonlinear solvers (#4345)
- Tag the AD type for adaptive exponential algorithms (#4429)
- Release 7.20.0 (#4432)



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.

2 participants