Repository navigation
Fix the stage times of Kvaerno3/4/5, SSPSDIRK2 and ESDIRK547L2SA2 - #4730
singhharsh1708 wants to merge 5 commits into
Conversation
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): MERGE, risk low. Full reviewVERDICT: MERGE Blocking findingsNone. The fix is correct. I checked it against an independent reference, not against the code's own output. For an RK method, solving the non-autonomous problem Non-blocking findings
What I ranAll runs used Julia 1.11.9, with exported copies of the PR head (
What I did not verify
Links
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
Independent review (Codex CLI 0.166.0 / gpt-6.1-sol), session 01a19822-bdb9-7081-8f26-f4967ebe74f6, reviewed head 52f1233
Review written by the reviewer named above in a session other than the PR author's, and copied here by the posting agent without change to its findings. The posting agent did not re-run the reviewer's commands. Summary: Corrects stage times for Kvaerno3/4/5, SSPSDIRK2, and ESDIRK547L2SA2, restoring their orders on time-dependent equations. The added analytic regressions fail on the base and pass on the reviewed live head, with no blocking defect found. Blast radius: Time-dependent right-hand sides evaluated by Kvaerno3/4/5, SSPSDIRK2, and ESDIRK547L2SA2, through both scalar out-of-place and vector in-place generic SDIRK stepping. No public signatures or default algorithm selection change. Evidence: Blind assessment frozen in INITIAL.md and INITIAL.sha256 before author context. Julia 1.13.2 head run exited 0: 290 passed, two pre-existing broken tests, including 10/10 added analytic convergence assertions and 38/38 stage-time checks. The exact added blocks on the merge-base exited 1: 33 passed, 15 failed (all 10 convergence assertions and the five corrected tableaus). The final independent probe returned Success in all 20 solves, with 38 assertions passing and two Kvaerno3 backward absolute-error assertions failing against a reviewer-selected budget; this does not establish a regression. SDIRK stable/LTS/prerelease and QA CI passed; other CI failures and comparison limits are detailed below. Blocking findingsNone. Non-blocking findingsNone. What I ran
What I did not verifyNo whole-package suite, heavy downstream suite, GPU execution, MPI, Reactant tracing, or dedicated dual-state/sensitivity test was run locally. No such specialized implementation changes in this diff; affected CPU in-place and out-of-place solver paths ran in both the local tests and SDIRK CI. The default-branch comparison does not establish the cause of the ModelingToolkit equation-orientation failure. I did not establish before/after attribution for the two Kvaerno3 backward probe misses. The planned autonomous bit-for-bit comparison was not reached because the independent probe testset failed; preservation of untouched default algorithms is assessed from the diff and existing head tests, not a dedicated base/head default-solver comparison. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5 |
PR: #4730 Reviewed head: 52f1233 Risk assessment
Review reportVERDICT: MERGE Riskmedium-low (ML2: corrects stage times for five opt-in SDIRK methods, with analytic convergence failing on the base and passing on the head) Blocking findings
Non-blocking findings
What I ran
What I did not verifyCI, the full monorepo suite, and solver behavior on other Julia versions. AUTHOR_GRADE: {"task":"bugfix","score":4,"difficulty":2,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"All five stage-time fixes reproduced against analytic solutions and both added testsets discriminated, with an unsigned convergence assertion worth strengthening."} Head link: 52f1233 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
The counted review of this head found no blocking issue, thank you. One thing remains before merge: these checks fail on this PR while the same checks pass on the latest default-branch run (https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/45730309549):
Could you open the logs of those checks on this PR and see whether the change alters results that the downstream test suites depend on (for example a tolerance or a solver-specific value)? If it is a real downstream effect, an update to this PR or a note on the expected change in the downstream tests would unblock it. If the failure looks unrelated to your change, say so and I will re-run the checks. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5 |
Kvaerno3, Kvaerno4, Kvaerno5, SSPSDIRK2 and ESDIRK547L2SA2 evaluated a stage at the wrong time, so they dropped to low order whenever
fdepends ont; their stage times now equal the row sums of the implicit tableau.The Kvaerno methods had
c2 = γwhere the row is[γ, γ](carried over from the old hand-written steps), SSPSDIRK2 hadc = [1, 1]instead of[1/4, 3/4], and ESDIRK547L2SA2 hadc4 = 49/453instead of 49/353.On
u' = -2u + cos(t)the observed orders go from 0.98, 0.94, 2.96, 0.99 and 0.95 to 2.95, 3.89, 4.95, 2.00 and 4.96, matching the autonomous form of the same problem, which was already correct.The tableau consistency test now checks
cagainst the row sums for all 38 methods; on master it fails for exactly these five. A forced-problem convergence test for the five methods, in place and out of place, locks in the orders; it passes 10/10 here and fails 10/10 on master's tableaus.Bumps SDIRK to 2.9.9 (the release bump took master to 2.9.8). #4853 bumps the same version; whichever merges second needs a re-bump.
AI Disclosure: Claude assisted with this change.