Repository navigation
Skip sparsity prep for matrix-free jac_prototype operators - #4445
Merged
ChrisRackauckas merged 1 commit intoAug 30, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
ODEFunction defaults sparsity to jac_prototype, so a non-convertible FunctionOperator was fed to KnownJacobianSparsityDetector and crashed in prepare_alg before any solve (SciML#4302). Co-authored-by: Cursor <[email protected]>
ChrisRackauckas-Claude
pushed a commit
to ChrisRackauckas-Claude/OrdinaryDiffEq.jl
that referenced
this pull request
Aug 31, 2026
Apply Runic v1.10 formatting to the tests added by SciML#4445. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]> Agent-Harness: Codex (version unknown) Agent-Model: GPT-5 Agent-Session: unknown
ChrisRackauckas
added a commit
that referenced
this pull request
Aug 31, 2026
Apply Runic v1.10 formatting to the tests added by #4445. Agent-Harness: Codex (version unknown) Agent-Model: GPT-5 Agent-Session: unknown Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: OpenAI Codex <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 7, 2026
- Add serial SDC solver family (OrdinaryDiffEqSDC) (#4208) - Give each threaded complex stage its own JVP operator (#4430) - Fix the adaptive error estimates of MRIGARKERK22a and MIS (#4232) - Skip sparsity prep for matrix-free jac_prototype operators (#4445) - Format differentiation tests (#4446) - Fix SciMLBase reexport QA on Julia LTS (#4450) 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 7, 2026
- Add serial SDC solver family (OrdinaryDiffEqSDC) (#4208) - Give each threaded complex stage its own JVP operator (#4430) - Fix the adaptive error estimates of MRIGARKERK22a and MIS (#4232) - Skip sparsity prep for matrix-free jac_prototype operators (#4445) - Format differentiation tests (#4446) - Fix SciMLBase reexport QA on Julia LTS (#4450) 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
- Add serial SDC solver family (OrdinaryDiffEqSDC) (#4208) - Give each threaded complex stage its own JVP operator (#4430) - Fix the adaptive error estimates of MRIGARKERK22a and MIS (#4232) - Skip sparsity prep for matrix-free jac_prototype operators (#4445) - Format differentiation tests (#4446) - Fix SciMLBase reexport QA on Julia LTS (#4450) - Preserve conditioning in OOP no-init solves (#4438) - Read the test group from GROUP like the CI passes it (#4447) - Raise root GPU test timeout (#4449) - Fix default SDE dt vector lengths (#4454) 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.
Please ignore this PR until reviewed by @ChrisRackauckas.
What changed and why
ODEFunctiondefaultssparsitytojac_prototype. When that prototype is a matrix-freeAbstractSciMLOperator(e.g.FunctionOperator),prepare_user_sparsitystill entered theKnownJacobianSparsityDetectorpath and calledconcrete_mass_matrix, which needs anAbstractMatrixconversion. That threw inprepare_algbefore any linear solve ran, so the matrix-free path was unusable regardless oflinsolve.Skip sparsity preparation when
sparsityis a non-convertible SciML operator. Convertible operators such asMatrixOperatorstill unwrap as before. OrdinaryDiffEqDifferentiation is bumped to 3.11.4.Fixes #4302.
Failing before / passing after
With the regression present and the source fix reverted, the issue reproducer throws:
With this patch,
prepare_user_sparsityreturns the dense AD algorithm unchanged, andinit/prepare_algsucceed for aFunctionOperatorjac_prototype.Local verification
GROUP=Core julia +1.12 --project=lib/OrdinaryDiffEqDifferentiation --startup-file=no -e 'using Pkg; Pkg.test()': package Core tests passed, including prepare_user_sparsity (11/11) and No Jac (21/21).prepare_user_sparsity_tests.jlafter the final edit: all 6 subsets passed.Made with Cursor