Repository navigation
Fix conditioning for OOP no-init nonlinear solves - #4438
Merged
ChrisRackauckas merged 1 commit intoAug 31, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
ChrisRackauckas-Claude
force-pushed
the
fix/oop-noinit-cache-semantics
branch
from
August 31, 2026 02:58
107eb1c to
fb1da72
Compare
Forward supported postconditions into complete no-init inner solves and avoid reusing a raw-residual W operator for preconditioned residuals. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]> Agent-Harness: Codex 0.151.0 Agent-Model: gpt-5 Agent-Session: local session ID 01a04fd1-292a-7cf3-b2e1-c6924b2a96c9
ChrisRackauckas-Claude
force-pushed
the
fix/oop-noinit-cache-semantics
branch
from
August 31, 2026 06:05
fb1da72 to
35685f9
Compare
ChrisRackauckas
marked this pull request as ready for review
August 31, 2026 18:31
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 7, 2026
- 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) - Bump DiffEqDevTools to 3.6.2 (#4461) - DiffEqBase: wrap mass-matrix problems on the finite-difference promote_f path (#4459) - Preserve the DAE step start during callback interpolation (#4466) - Release DiffEqBase 7.20.1 (#4474) - Release OrdinaryDiffEqCore 4.16.1 (#4475) 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
referenced
this pull request
Sep 7, 2026
* Resolve symbolic idxs in the integrator interpolant `integrator(t; idxs = sym)` passed `idxs` straight to the dense-output interpolant, which only accepts integer component indices, so any symbolic index threw `ArgumentError: invalid index` and an observed equation could never be retrieved. `sol(t; idxs = sym)` has resolved both for a long time. Symbolic `idxs` now route to `SciMLBase.symbolic_interpolation`, which evaluates the current step's interpolant and applies the symbolic getter to it. Integer, `nothing`, and in-place calls are unchanged. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam * Route symbolic idxs for DelayDiffEq integrators too `DDEIntegrator` has the same gap `ODEIntegrator` did: `integrator(t; idxs = sym)` went straight to the dense-output interpolant, which only accepts integer component indices, so symbolic indexes threw and observed equations were unreachable. The predicate moves to the public `SciMLBase.has_symbolic_idxs` rather than staying an OrdinaryDiffEqCore internal, since DelayDiffEq, Sundials and ODEInterfaceDiffEq all need the same decision. `HistoryODEIntegrator` is deliberately left alone: it implements none of the `SymbolicIndexingInterface` methods a `DEIntegrator` needs, so symbolic indexing against it is unsupported before and after this change. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam * Require SciMLBase 3.53 for has_symbolic_idxs `has_symbolic_idxs` did not make it into the 3.52.0 release, so the floor moves to the version that carries it. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam --------- Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 11, 2026
- 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) - Bump DiffEqDevTools to 3.6.2 (#4461) - DiffEqBase: wrap mass-matrix problems on the finite-difference promote_f path (#4459) - Preserve the DAE step start during callback interpolation (#4466) - Release DiffEqBase 7.20.1 (#4474) - Release OrdinaryDiffEqCore 4.16.1 (#4475) - Release OrdinaryDiffEqNonlinearSolve 2.9.5 (#4476) 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.
Important
Please ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed
This is a focused follow-up to the now-merged #3798. It keeps out-of-place
Wreuse for unconditionedSimpleNonlinearSolveno-init solvers while preserving conditioning semantics:postconditiondata;StaticWOperator;preconditionitself remains embedded in theNonlinearProblemthroughPreconditionWrapper; the bug was specifically thatWreuse supplied a Jacobian for the untransformed residual. Generic traced algorithms continue to use the no-init fallback, so this does not makeReverseDiffAdjointdepend on a mutating inner cache.Regression evidence
I checked both focused probes against the unfixed stacked parent commit ChrisRackauckas-Claude@9b6517a90.
The postcondition probe defines a no-init algorithm with
supports_postcondition(::NoInitPostconditionProbe) = true, records whetherpostconditionreachesSciMLBase.__solve, and asserts the record after anImplicitEulersolve. With Julia 1.12.7,--compiled-modules=no, and an isolated local test environment, the unfixed code produced:The static out-of-place probe used this assertion sequence:
The unfixed code produced:
With the final fix commit ChrisRackauckas-Claude@35685f9 applied, the combined probes completed with exit code 0:
Verification
Formatting, additions-only spelling, and diff checks:
All completed successfully with no findings.
QA group:
Core group:
The full Core group passed, including every remaining declared Core testset. Master advanced afterward by one commit that only formats two
OrdinaryDiffEqDifferentiationtest files; I inspected that delta, rebased onto it, then reran Runic, typos, the diff check, and both focused probes on the exact final tree.Not verified
GROUP=Everythingwas not run.Reviewer note
conditioning_kwargs(cache)intentionally forwards only conditioning supported by the selected inner algorithm. Its unconditioned result remains the specialized empty named tuple, preserving the allocation behavior added by the parent PR.🤖 Generated with Codex 0.151.0 (model: gpt-5; session: local session ID 01a04fd1-292a-7cf3-b2e1-c6924b2a96c9).