Skip to content

Use the collocation polynomial for SDC dense output - #4571

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:sdc-collocation-dense-output
Sep 28, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:sdc-collocation-dense-output

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

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.

@singhharsh1708
singhharsh1708 marked this pull request as draft September 16, 2026 22:02
@singhharsh1708
singhharsh1708 force-pushed the sdc-collocation-dense-output branch from e89060c to 5584d55 Compare September 16, 2026 22:15
@singhharsh1708
singhharsh1708 marked this pull request as ready for review September 16, 2026 22:15
@singhharsh1708
singhharsh1708 force-pushed the sdc-collocation-dense-output branch 5 times, most recently from 13a018c to 43ebee4 Compare September 20, 2026 05:31
@singhharsh1708
singhharsh1708 force-pushed the sdc-collocation-dense-output branch from 43ebee4 to 2faea47 Compare September 26, 2026 14:03
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 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.


🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5[1m] (fleet master)
Conversation: https://claude.ai/code/session_01LvC5dTuxGscm48yhAw8Ssn

@singhharsh1708
singhharsh1708 force-pushed the sdc-collocation-dense-output branch from 2faea47 to bdd605d Compare September 28, 2026 03:18
@singhharsh1708

Copy link
Copy Markdown
Member Author

Rebased onto master (SDC 1.5.0); SDC Core 2410/2410 and Threaded 25/25 pass locally.

@ChrisRackauckas
ChrisRackauckas merged commit 2bf4552 into SciML:master Sep 28, 2026
131 of 135 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants