Repository navigation
Refresh FSAL derivatives after solve-level step limiters - #4035
Merged
Merged
Conversation
Solve-level limiters run after method stages have computed their endpoint derivatives. Mark non-trivial limiters for FSAL reevaluation so the next step starts from a derivative consistent with the accepted projected state. Add cache-dispatched ETD2 resets that preserve nonlinear history, plus in-place, out-of-place, callback, and evaluation-count regressions.
Contributor
Author
|
All of the failures seem to be unrelated. |
ChrisRackauckas
approved these changes
Aug 4, 2026
Contributor
Author
|
@ChrisRackauckas Thanks for your review. Can we get this merged? |
Member
|
oh yes thank you for the reminder. |
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 11, 2026
- Format clean-master drift with Runic 1.10 (#4423) - Reformat six files for Runic 1.10 (#4424) - Refresh FSAL derivatives after solve-level step limiters (#4035) - Require SciMLBase 3.46 where AutoDespecialize is used (#4426) - Document the limiter keywords with their real names (#4427) - Tighten the AdaptiveRadau Newton tolerance with the stage count (#4431) - Fix the AitkenNeville evaluation count and array states (#4428) - Fix crashes when a cache holds a vector of nonlinear solvers (#4345) - Tag the AD type for adaptive exponential algorithms (#4429) - Release 7.20.0 (#4432) 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.
Summary
step_limiterreset_fsal!on the algorithm cache so ETD2 can recompute its split derivative while preserving nonlinear historyRoot cause
Solve-level step limiters run centrally after
perform_step!. FSAL methods have already computedfsallastat the unprojected endpoint by then. The accepted state can therefore be projected while the next step starts with a derivative evaluated at a state that was never accepted.Marking
reeval_fsalrestores the invariantfsalfirst == f(uprev, p, tprev)before the next step. ETD2 needs cache-specific handling because its FSAL object stores separate linear/current-nonlinear/previous-nonlinear values; the reset preservesnlprevand recomputes only the current split derivative.Semantics
The limiter remains outside the embedded adaptive error estimate. It is applied to each attempted endpoint before domain checking and acceptance callbacks. Dense interpolants between accepted endpoints are not projected. The default trivial limiter adds no work; a configured non-trivial limiter adds one RHS refresh between accepted steps, excluding the terminal endpoint where no later step consumes FSAL.
Verification
test/Integrators_I/step_limiter_test.jl: 263/263 passedgit diff --check: passed