You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use the collocation polynomial for SDC dense output - #4571
SDC now interpolates with the collocation polynomial through the final sweep's node rates instead of cubic Hermite, so sol(t) between steps keeps the accuracy of the method. initialize! left k empty, so dense output fell back to Hermite with two extra f calls per interpolated step, capped at order 4 for values and 3 for the derivative whatever num_nodes is.
With converged sweeps the dense order is now M+1 for values and M for the derivative; on a rotation with 5 nodes and dt = 0.2 the L2 dense error drops from 2.7e-6 to 7.0e-11.
A callback that shortens a step falls back to Hermite, the LastNode step update and calck = false store nothing and keep today's Hermite path, and a split problem's node rates include f2.
AI Disclosure: Claude assisted with this change.
🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.
The review at 2faea47 found nothing blocking. The only failing check is the self-hosted GPU QNDF [jac=CSC, mass=diag_cu] test at test/gpu/dae_tests.jl:481, which fails the same way on other PRs and is unrelated to OrdinaryDiffEqSDC. This PR now conflicts with master, because #4568 (SDC W reuse) just merged into the same files. Could you rebase onto master? It can be merged as soon as the rebase is in and CI shows no new failures.
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
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.
SDCnow interpolates with the collocation polynomial through the final sweep's node rates instead of cubic Hermite, sosol(t)between steps keeps the accuracy of the method.initialize!leftkempty, so dense output fell back to Hermite with two extrafcalls per interpolated step, capped at order 4 for values and 3 for the derivative whatevernum_nodesis.With converged sweeps the dense order is now M+1 for values and M for the derivative; on a rotation with 5 nodes and
dt = 0.2the L2 dense error drops from 2.7e-6 to 7.0e-11.A callback that shortens a step falls back to Hermite, the
LastNodestep update andcalck = falsestore nothing and keep today's Hermite path, and a split problem's node rates includef2.AI Disclosure: Claude assisted with this change.