Repository navigation
Fix StabilizedRK Algorithims - #3902
Sreeram-Shankar wants to merge 4 commits into
Conversation
jlchan
left a comment
There was a problem hiding this comment.
Thanks for adding this! I'm not super familiar with this implementation, but here were a few things that stood out.
…, addressed issue in first step of RKC TSRKC and RKMC, and finnal stage issue in ROCK2
|
#3835 is the complete generalization, and I think we should just do that rather than doing it per-method. |
|
Reverted the step and stage limiter changes, just the small changes in the methods now |
|
This needs a rebase on the pointer cycling, I'll take care of that. |
Rebase of the surviving content of SciML#3902 onto current master. In the in-place TSRKC2 and TSRKC3 stage loops `th` was assigned inside the `if (iter < mdeg)` guard. Hoisting it out matches RKC and RKMC2, which already compute `th` unconditionally. This is a no-op: `th` is read only by the `th1 = th` on the following line, which stays inside the guard, so nothing observes the value computed on the final iteration. The rest of SciML#3902 landed separately and is already on master: - RKL1/RKL2 non-autonomous stage times (SciML#3948) - RKG1/RKG2 non-autonomous stage times (SciML#3949) - RKC in-place mdeg < 2 handling (SciML#3951) - per-algorithm limiter fields, reverted by the author in c34fe7a and superseded by solve-level limiters (SciML#3835) Original commits: 9158496, 05548a5, c34fe7a Co-Authored-By: Chris Rackauckas <[email protected]>
…4091) Rebase of the surviving content of #3902 onto current master. In the in-place TSRKC2 and TSRKC3 stage loops `th` was assigned inside the `if (iter < mdeg)` guard. Hoisting it out matches RKC and RKMC2, which already compute `th` unconditionally. This is a no-op: `th` is read only by the `th1 = th` on the following line, which stays inside the guard, so nothing observes the value computed on the final iteration. The rest of #3902 landed separately and is already on master: - RKL1/RKL2 non-autonomous stage times (#3948) - RKG1/RKG2 non-autonomous stage times (#3949) - RKC in-place mdeg < 2 handling (#3951) - per-algorithm limiter fields, reverted by the author in c34fe7a and superseded by solve-level limiters (#3835) Original commits: 9158496, 05548a5, c34fe7a Co-authored-by: Sreeram-Shankar <[email protected]> Co-authored-by: Chris Rackauckas <[email protected]>
|
I rebased your commit in #4091 |
|
have limiters for the stages and steps for stabilized_rk been added yet as part of the broader generalization? I dont see it yet in https://github.com/SciML/OrdinaryDiffEq.jl/blob/master/lib/OrdinaryDiffEqStabilizedRK/src/rkc_perform_step.jl |
|
that might've been missed. |
|
Looks like #3835 reported adding limiters to both stabilized and exponential RK methods, but didn't. |
|
would it be possible to have them sooner rather than later? |
|
Confirmed: #3835 never added the stage hooks to 🤖 Written by an AI agent (Devin CLI 3000.10.21, model Fusion — Claude Fable 5.1 High + SWE-2 Medium) on behalf of Chris Rackauckas; local session id |
Small Updates and Fixes for Stabilized RK Methods
Added non-autonomous function evaluations at the intermediate polynomial stages for RKL and RKG methods. the function evaluations at the polynomial j evaluation now use a time increment and are accurate for non-autonomous systems
TSRK2, RKC, and RKMC now use an increment of
thrather thanth1for their first stage evaluationROCK 2 final stage now updates correctly for the final solution