Skip to content

Tag the AD type for adaptive exponential algorithms - #4429

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:fix-exprb-autospecialize-tag
Aug 29, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:fix-exprb-autospecialize-tag

Conversation

@singhharsh1708

Copy link
Copy Markdown
Member

Exprb32() and Exprb43() fail on a default in-place ODEProblem with "First call to automatic differentiation for the Jacobian failed ... No matching function wrapper was found!", while Rosenbrock23, Exp4 and EPIRK4s3A solve the same problem, and the two Exprb methods work with FullSpecialize, NoSpecialize or an analytic Jacobian.
prepare_alg in OrdinaryDiffEqDifferentiation tags the AD type with OrdinaryDiffEqTag for a Union of algorithm supertypes that includes OrdinaryDiffEqExponentialAlgorithm but not OrdinaryDiffEqAdaptiveExponentialAlgorithm, which is a sibling under OrdinaryDiffEqAdaptiveAlgorithm rather than a subtype, so the Exprb Jacobian config is built with the untagged UJacobianWrapper tag that the AutoSpecialize function wrappers were never compiled for.
Added the adaptive exponential type to the Union; the new test solves both methods on a default in-place problem and checks them against the FullSpecialize solution, and the ExponentialRK suite passes locally.
AI Disclosure: Claude assisted with this change.

@singhharsh1708
singhharsh1708 marked this pull request as ready for review August 29, 2026 18:46
@ChrisRackauckas
ChrisRackauckas merged commit d6124d8 into SciML:master Aug 29, 2026
181 of 186 checks passed
@singhharsh1708
singhharsh1708 deleted the fix-exprb-autospecialize-tag 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