Skip to content

Reuse W across the sweeps of an adaptive SDC step - #4568

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:sdc-reuse-w-across-sweeps
Sep 26, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:sdc-reuse-w-across-sweeps

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Adaptive SDC now marks a node's nonlinear solve as the first stage only on the first sweep of a step, or when that node's γ changed, so W is reused across the sweeps of a step.
Marking every sweep in sdc_perform_step.jl made do_newJW treat each sweep as a new step, which rebuilt W on every sweep of a retried step and on every solve with fast_convergence_cutoff = 0.
On Van der Pol (mu = 1000, 3 nodes, 4 sweeps, reltol 1e-6) W factorizations drop from 132 to 69 with the LU sweeper and from 180 to 54 with the cutoff at 0, with identical steps, Newton iterations and solution; ROBER to t = 1e5 goes from 2235 to 687 with the cutoff at 0.
The γ check keeps MIN-SR-FLEX, whose γ changes every sweep, on the same steps and W count as today; marking only sweep 1 gave it 4768 steps instead of 151 on ROBER with the cutoff at 0.
Follows up the review of #4208.
AI Disclosure: Claude assisted with this change.

@singhharsh1708
singhharsh1708 force-pushed the sdc-reuse-w-across-sweeps branch 3 times, most recently from 874941e to 8e2fe1a Compare September 20, 2026 05:30
@singhharsh1708
singhharsh1708 force-pushed the sdc-reuse-w-across-sweeps branch from 8e2fe1a to 2b5ee05 Compare September 26, 2026 13:41
@ChrisRackauckas
ChrisRackauckas merged commit 85110ac into SciML:master Sep 26, 2026
131 of 135 checks passed
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.

2 participants