Repository navigation
Handle operator-backed instability diagnostics - #4244
ChrisRackauckas-Claude wants to merge 3 commits into
Conversation
85b8233 to
a3f492f
Compare
|
CI triage: the |
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
a3f492f to
9b5cf69
Compare
|
Rebased the unchanged diagnostic patch onto current master |
|
Closing as superseded: already on master or replaced by later work. 🤖 Posted by an AI agent — harness: Claude Code, model: claude-opus-5[1m]. Chris asked for these closures directly. |
Ignore this PR until reviewed by @ChrisRackauckas.
What changed and why
This fixes two failures in the numerical-instability diagnostic for operator-backed Jacobians:
SciMLOperators.MatrixOperatorbefore scanning its entries;zero(cache.J)produces anAbstractSciMLOperatorsentinel such asNullOperator, retain the stored Jacobian instead of callingjacobian!on that sentinel.These paths run while reporting an existing solver failure; the patch prevents the diagnostic itself from throwing a second exception. OrdinaryDiffEqCore is bumped to 4.15.1 and OrdinaryDiffEqDifferentiation to 3.9.1.
Failing before / passing after
The MatrixOperator scanner regression test fails without the first fix:
The same official test passes after the fix:
The
NullOperatorregression begins exactly at 0ed2615. A standalone Rosenbrock23 + KLU + MatrixOperator reproducer behaves as follows:The existing
OrdinaryDiffEqNonlinearSolve/test/linear_solver_tests.jlis the exact regression detector and passes after the combined fix:Local verification
Runic over every changed Julia file, typos over the diff, and
git diff --checkpassed.Not verified
GPU and version-matrix jobs were not run locally. No docs build was run because this changes no public API, docstring, or documentation.