Skip to content

Keep callback jumps in the DDE history regardless of save_positions - #4572

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:dde-history-keeps-callback-jump
Sep 26, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
singhharsh1708:dde-history-keeps-callback-jump

Conversation

@singhharsh1708

@singhharsh1708 singhharsh1708 commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

MethodOfSteps now records the state a callback leaves behind in the history whatever save_positions asks of the returned solution, so a jump is visible to every later lookback into the step that crosses it, while save_positions keeps deciding what the returned solution stores.
The history is the ODE integrator's solution, and only a save_positions[2] save ever wrote the post-jump point into it, so without one the interpolant on the crossing step was built from the pre-jump value and the returned solution was wrong, not just its interpolation.
On the bolus DDE of the issue at tolerances of 1e-12, the four save_positions settings now agree exactly, where (true, false) and (false, false) were off by 0.359 in the delayed component.
The history carries both sides of the jump at the event time for every save_positions setting; the tests assert that on the history itself rather than through the returned solution.
Fixes #4515.
AI Disclosure: Claude assisted with this change.

@singhharsh1708
singhharsh1708 force-pushed the dde-history-keeps-callback-jump branch 2 times, most recently from 17e2666 to 58887c2 Compare September 17, 2026 11:09
@singhharsh1708
singhharsh1708 force-pushed the dde-history-keeps-callback-jump branch from 58887c2 to 0572900 Compare September 25, 2026 11:35
@singhharsh1708
singhharsh1708 force-pushed the dde-history-keeps-callback-jump branch from 0572900 to 21a45e9 Compare September 25, 2026 11:37
@ChrisRackauckas
ChrisRackauckas merged commit 0d783af into SciML:master Sep 26, 2026
139 of 142 checks passed
@singhharsh1708
singhharsh1708 deleted the dde-history-keeps-callback-jump branch September 26, 2026 13:03
ChrisRackauckas referenced this pull request Sep 29, 2026
* Bump DiffEqBase to 7.21.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqBDF to 2.4.12

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSDIRK to 2.9.7

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqRosenbrock to 2.7.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqLowOrderRK to 2.2.6

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqTsit5 to 2.1.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqVerner to 2.4.2

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSymplecticRK to 2.2.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

DelayDiffEq: callback save_positions decides the correctness of the history, not just the saved output

2 participants