Skip to content

treat AutoSparse(ForwardDiff) as isAD in dae reinit - #4422

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
hexaeder:hw/sparse_fd_is_fd
Aug 30, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
hexaeder:hw/sparse_fd_is_fd

Conversation

@hexaeder

Copy link
Copy Markdown
Contributor

Previously, AutoSparse(ForwardDiff) was classified as non-AD during reinit which lead to wrong buffers and Float64(Dual) errors.

This broke reinit of systems with sparse jac_prototypes (only sometimes though, Brydon and Klement don't need a jac so it only failed if the polyalg reached Newton. If a sparse system should maybe skip the non-jacobian solvers per default in the polyalg is a different question).

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Previously, AutoSparse(ForwardDiff) was classified as non-AD during reinit
which lead to wrong buffers and Float64(Dual) errors.
@hexaeder hexaeder changed the title treat AutoSparse(ForwardDiff) as ForwardDiff treat AutoSparse(ForwardDiff) as isAD in dae reinit Aug 28, 2026
@ChrisRackauckas
ChrisRackauckas merged commit 9763674 into SciML:master Aug 30, 2026
168 of 172 checks passed
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]>
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