Skip to content

Mark an operator Jacobian as updated when calc_W! moves it - #4354

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:fix-operator-jac-staleness
Aug 30, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:fix-operator-jac-staleness

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

calc_W!'s WOperator branch updates an operator J in place through update_coefficients!, so its identity never changes and a linear solver caching its factorisation was never told it moved; it is now marked updated unconditionally, at worst one extra refactorisation.

The staleness assertion in stale_w_linear_operator_tests.jl fails on master and passes with the change. #4351 and #4401 bump the same Differentiation version line, so whichever lands second needs it refreshed.

Fixes #4303.

AI Disclosure: Claude assisted with this change.

@singhharsh1708
singhharsh1708 force-pushed the fix-operator-jac-staleness branch 2 times, most recently from a8eff61 to 4d0e77f Compare August 28, 2026 14:19
@singhharsh1708
singhharsh1708 force-pushed the fix-operator-jac-staleness branch from 4d0e77f to 893b33c Compare August 29, 2026 08:14
@ChrisRackauckas
ChrisRackauckas merged commit 01e4cc6 into SciML:master Aug 30, 2026
180 of 184 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 7, 2026
- Fix StochasticDiffEqImplicit import ordering (#4408)
- Fix TauLeaping JumpProblem initialization (#4409)
- Fix dense output for the explicit multirate methods (#4233)
- Let reinit! keep the step-size controller history (#4400)
- Mark an operator Jacobian as updated when calc_W! moves it (#4354)
- Restore weighted preconditioning and tolerances for default Krylov solves (#4391)



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.

calc_W! never marks an operator Jacobian as updated, so a caching linear solver cannot see J move

2 participants