Repository navigation
Reuse W across the sweeps of an adaptive SDC step - #4568
Merged
ChrisRackauckas merged 1 commit intoSep 26, 2026
Merged
Conversation
singhharsh1708
force-pushed
the
sdc-reuse-w-across-sweeps
branch
3 times, most recently
from
September 20, 2026 05:30
874941e to
8e2fe1a
Compare
singhharsh1708
force-pushed
the
sdc-reuse-w-across-sweeps
branch
from
September 26, 2026 13:41
8e2fe1a to
2b5ee05
Compare
This was referenced Sep 26, 2026
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.
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.jlmadedo_newJWtreat each sweep as a new step, which rebuilt W on every sweep of a retried step and on every solve withfast_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.