Repository navigation
Read a scalar mass matrix instead of its missing diagonal - #4582
singhharsh1708 wants to merge 2 commits into
Conversation
82cad78 to
6b6e95f
Compare
6b6e95f to
235c25c
Compare
ff6f48d to
e96782f
Compare
Verdict: changes needed before merge (reviewed at The PR fixes a real regression from #4560. Explicit-first-stage SDIRK methods (TRBDF2, KenCarp*, Kvaerno*) crash on any scalar mass matrix ( Risk assessment
Findings
Push a fix and the PR is reviewed again automatically at the new head. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5[1m] (fleet master); review by Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
e96782f to
d97ba63
Compare
|
Took the second option: |
# Conflicts: # lib/OrdinaryDiffEqSDIRK/Project.toml
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): REJECT, risk low. Full reviewVERDICT: REJECT Blocking findings
Non-blocking findingsThese only matter if the PR were kept alive.
What I ranAll runs used Julia 1.12, with separate scratch envs that
What I did not verify
Links
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
|
Superseded by #4780. |
Explicit-first-stage SDIRK methods take a scalar mass matrix again: the FSAL conversion added in #4560 reads
diag(M), which neitherλ*InorScalarOperator(λ)has, so every solve with one threwMethodError: no method matching diag(...)._mmdiagingeneric_imex_perform_step.jlnow dispatches onUniformScalingandScalarOperatorand reads the scalar itself, at the start of the step for the FSAL it consumes and at the end for the FSAL it produces, which aScalarOperatorwith anupdate_funcneeds. SDIRK takesScalarOperatorandupdate_coefficientsfrom SciMLOperators, as BDF and ExponentialRK do, so it no longer touches Differentiation internals and its Differentiation compat is unchanged.lib/OrdinaryDiffEqDifferentiation/test/scalar_operator_massmatrix_tests.jl, added with #3916, goes from 5 passed and 1 error to 9 passed. TRBDF2, KenCarp4 and Kvaerno5 solveM u' = -uwith2.0*I(in and out of place) and in place withScalarOperator(2.0)and a time-dependentScalarOperator; the out-of-placeScalarOperatorcases stop earlier, in NLNewton's W construction.SDIRK's DAE tests pass 78 of 78 and its
qa.jlpasses 18 of 18.AI Disclosure: Claude assisted with this change.