Repository navigation
Accept stochastic caches in nlsolve! - #4386
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
The nonlinear solve helper is shared with StochasticDiffEq, whose integrator caches implement the common public SciMLBase.DECache contract rather than OrdinaryDiffEqCache. Accept that shared contract while retaining the wrong-slot guard. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://chatgpt.com/codex/tasks/01a03c36-0ac6-7311-82e4-20b12ea6f040
Member
Author
|
The separate clean-master NonlinearSolve downgrade failure is fixed by the dependency-floor correction in #4394. The exact locked downgraded Core group passes locally after requiring OrdinaryDiffEqDifferentiation 3.10 and OrdinaryDiffEqSDIRK 2.9. Please merge #4394 first, then rebase this PR and rerun its NonlinearSolve downgrade job. This preserves this PR’s existing 2.9.2 package-version bump and avoids competing version bumps. |
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.
What changed
OrdinaryDiffEqNonlinearSolve.nlsolve! is also used by StochasticDiffEq, whose integrator caches subtype the public common SciMLBase.DECache abstraction rather than OrdinaryDiffEqCache. The cache-slot validation added in #4352 therefore rejected valid ISSEMCache, ImplicitEMCache, and ImplicitEMConstantCache values.
This accepts SciMLBase.DECache while continuing to reject non-cache values, bumps OrdinaryDiffEqNonlinearSolve to 2.9.2, and adds explicit successful-retcode assertions to the implicit event solves.
Regression identification
The first bad commit is e4f0c5e. Before that commit, the downstream Interface3 job passed with OrdinaryDiffEqNonlinearSolve 2.9.0; after it, the new OrdinaryDiffEqCache guard rejected StochasticDiffEq caches. SciMLBase's PR and master jobs have identical failures and the same solver package versions, so this is not caused by the SciMLBase change under test.
Verification
I reproduced all four failures on clean current SciMLBase master from the StochasticDiffEq test environment:
With this commit, the same full groups pass:
Additional local checks:
The full GROUP=Core OrdinaryDiffEqNonlinearSolve run was also attempted with a one-hour timeout. Developer API, Newton, sparse DAE initialization, linear nonlinear solver, linear solver, and split-ODE testsets passed; the run reached mass_matrix_tests.jl but did not finish before the timeout. I did not run GROUP=Everything, Julia LTS/pre, GPU groups, or docs. Docs were not run because this changes no docs, docstrings, or public API.
Reviewer judgment: accepting every SciMLBase.DECache intentionally uses the shared public cache contract. It preserves the guard against the non-cache third argument that motivated #4352.
Links
🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03c36-0ac6-7311-82e4-20b12ea6f040