Repository navigation
Preserve fixed-step multistep convergence - #4328
Merged
ChrisRackauckas merged 3 commits intoAug 22, 2026
Merged
ChrisRackauckas merged 3 commits into
ChrisRackauckas merged 3 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
fix/nonlinear-fixed-step-nlstep-scaling
branch
from
August 21, 2026 09:14
12462ce to
3169df1
Compare
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.
Stack
This is a focused follow-up stacked on #4325. The first commit is that PR's parameter-wrapper fix; the second commit is the fixed-step convergence change to review here. After the prerequisite merges, this branch should be rebased so this PR contains only the second commit.
What changed
Keep the solution-scaled
COEFFICIENT_MULTISTEPnonlinear residual for adaptive integration, while restoring the historical raw residual scaling for fixed-step integration. The solution scaling prevents adaptive rejection from walking todtmin, but for a fixed step it creates adt-independent nonlinear error floor and destroys the solver's convergence order.The regression test checks that fixed-step ABDF2 retains second-order convergence with a
NonlinearSolveAlginner solve. OrdinaryDiffEqNonlinearSolve is bumped from 2.10.2 to 2.10.3. No public API is changed.Failing before, passing after
The regression bisects to 523c650, introduced by #4264.
At its parent
3d2933057fa7d4dc27df4b4a4f2790f10d8413d6, the exact ModelingToolkit NLStep group reports 23 passed and 2 broken. At the introducing commit it reports 17 passed, 6 failed, and 2 broken.The same new official fixed-step test discriminates directly:
Verification
GROUP=QA JULIA_PKG_PRECOMPILE_AUTO=0 timeout 3600 julia +1.12 \ --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test()'GROUP=ModelingToolkit JULIA_PKG_PRECOMPILE_AUTO=0 timeout 3600 julia +1.12 \ --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test()'With ModelingToolkit pinned to the dependency commit that exposes the parameter conversion and convergence failures:
GROUP=Core JULIA_PKG_PRECOMPILE_AUTO=0 timeout 21600 julia +1.12 \ --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test()'The environment was path-pinned to the current monorepo OrdinaryDiffEqCore 4.15.0 and OrdinaryDiffEqDifferentiation 3.9.1.
Runic,
typos, andgit diff --checkexit successfully on the convergence-only three-file diff.Not verified
GPU paths were not run. This PR depends on #4325; the wrapper is retained as the first commit solely so the ModelingToolkit group can reach the convergence assertions.