Repository navigation
Add adaptive step size control to SDC - #4346
Merged
Merged
Conversation
singhharsh1708
force-pushed
the
sdc-adaptive
branch
3 times, most recently
from
August 29, 2026 08:15
f993874 to
8a62df8
Compare
This was referenced Aug 29, 2026
singhharsh1708
force-pushed
the
sdc-adaptive
branch
3 times, most recently
from
September 1, 2026 02:27
37e753b to
3e8250b
Compare
singhharsh1708
marked this pull request as ready for review
September 1, 2026 02:43
Member
Author
|
@ChrisRackauckas ready for review, base of the stack (#4346, then #4347, then #4348). |
singhharsh1708
force-pushed
the
sdc-adaptive
branch
from
September 6, 2026 08:54
3e8250b to
d2f77be
Compare
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
- qa: allow JET 0.12 in OrdinaryDiffEqCore/BDF/NonlinearSolve QA envs (#4516) - Add regression tests for issues verified fixed in recent releases (#4517) - fix: save all simultaneous events in a VCC (#4129) - Add 4th-order Friedli Exponential Runge-Kutta solver (#4481) - Release DiffEqBase 7.21.1 (#4521) - Fix BDF rejected-step controller for backward (tdir < 0) solves (#4519) - Require OrdinaryDiffEqCore 4.17.1 where its new internals are used (#4525) - OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520) - Add adaptive step size control to SDC (#4346) - Allow JET 0.12 in every QA test environment (#4513) 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 13, 2026
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520) - Add adaptive step size control to SDC (#4346) - Allow JET 0.12 in every QA test environment (#4513) - Resolve OrdinaryDiffEqDefault against the local sublibraries (#4514) - NonlinearSolveAlg: stale-Jacobian retry + rejected-step W reassembly (carries #4282 to current master) (#4505) - Do not seed a retry from the previous-step interpolant (#4473) - Say why the linear path ignores new_W_dt_cutoff (#4527) - Carry the QNDF2 difference array across steps (#4526) - Pass Θ = 0, not the absolute time, to the AN5 startup interpolant (#4534) - Make the stabilized-RK step cap and eigenvalue tolerance direction-agnostic (#4536) 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.
Makes
SDCadaptive: the embedded solution is the previous sweep's step update, already in the cache, so the estimate costs a fewaxpys and no extra right-hand side evaluations; the algorithm moves toOrdinaryDiffEqNewtonAdaptiveAlgorithmwithalg_adaptive_orderone below the order. Fixed steps remain available withadaptive = falseand adt.On the reference problem at
M = 3,K = 3the adaptive solve takes 272 steps with 188x fewer Jacobian evaluations than the fixed-step run at the same accuracy; on Prothero-Robinson atlambda = -1e4and tolerance1e-8,K = 3takes 22768 steps and 206203 nonlinear solves for an error of 4.1e-9.The base type change alters results slightly even under
adaptive = false; I bisected that rather than assuming, and the pre-existing numbers return exactly when the base type is reverted. The nonlinear tests now pick step sizes by expected order, as the Dahlquist gate already did, with a regression residual gate of 0.1 rather than qmat's 0.05.The change here is the single "Add adaptive step size control to SDC" commit. Full suite passes.
AI Disclosure: Claude assisted with this change.