Repository navigation
Fix TauLeaping JumpProblem initialization - #4409
Merged
ChrisRackauckas merged 1 commit intoAug 30, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Keep stochastic JumpProblem solves in the stochastic initialization path and resolve direct pure-jump initialization before JumpProcesses can unwrap the problem into the ODE cache path. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://chatgpt.com/codex/tasks/01a03caf-aae8-74c3-9a79-53b836434858
ChrisRackauckas
marked this pull request as ready for review
August 30, 2026 02:04
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 7, 2026
- Fix StochasticDiffEqImplicit import ordering (#4408) - Fix TauLeaping JumpProblem initialization (#4409) - Fix dense output for the explicit multirate methods (#4233) - Let reinit! keep the step-size controller history (#4400) - Mark an operator Jacobian as updated when calc_W! moves it (#4354) - Restore weighted preconditioning and tolerances for default Krylov solves (#4391) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed and why
TauLeaping JumpProblem initialization could be intercepted by the JumpProcesses OrdinaryDiffEq extension, which unwraps the DiscreteProblem and sends TauLeaping through the ODE cache path. That path requests the 16-argument ODE alg_cache method, while TauLeaping requires stochastic initialization and its 18-argument cache setup.
This keeps JumpProblem solves inside StochasticDiffEqCore after callback merging and adds a narrower pure-jump init dispatch so TauLeaping initialization wins without overwriting the broader JumpProcesses method. The regression test exercises direct init, step!, solve, and the returned retcode. StochasticDiffEqCore receives a patch version bump.
Please ignore this draft until it has been reviewed by @ChrisRackauckas.
Cause
A source bisect across JumpProcesses v9.23.2 to v9.24.0 identified commit 31ca00b1db45b03328669cd669febffa23916a03 as the first commit whose OrdinaryDiffEqCore extension included stochastic algorithms in its intercepting dispatch. A current-source standalone reproducer independently confirmed the resulting call path through JumpProcessesOrdinaryDiffEqCoreExt into OrdinaryDiffEqCore ODE initialization.
Failing before
On the unmodified OrdinaryDiffEq master commit 43a65a5 with Julia 1.12.7:
Result:
A standalone JumpProblem reproducer containing direct init plus step! and complete solve failed with the same missing 16-argument alg_cache method.
Passing after
Validated on current upstream master commit 52bf8f3 with Julia 1.12.7:
Other attempted group
GROUP=StochasticDiffEq_Interface1 was attempted twice on the earlier base commit. Its only error was the independent current-base ISSEM nonlinear-cache regression:
That non-JumpProblem failure was fixed independently by OrdinaryDiffEq pull request 4407 before this branch was rebased. It is not included in this focused change.
Not verified
Links
🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03caf-aae8-74c3-9a79-53b836434858