File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22# when the solver (i.e. StochasticDiffEq.jl) allows for jumps in __init
33struct ForceJumpDispatch end
44
5+
6+
57function DiffEqBase. __solve (jump_prob:: DiffEqBase.AbstractJumpProblem{P} ,
68 alg:: DiffEqBase.DEAlgorithm ;
79 kwargs... ) where {P}
@@ -10,6 +12,15 @@ function DiffEqBase.__solve(jump_prob::DiffEqBase.AbstractJumpProblem{P},
1012 integrator. sol
1113end
1214
15+ # Ambiguity Fix
16+ function DiffEqBase. __solve (jump_prob:: DiffEqBase.AbstractJumpProblem{P} ,
17+ alg:: Union{SciMLBase.AbstractRODEAlgorithm, SciMLBase.AbstractSDEAlgorithm} ;
18+ kwargs... ) where {P}
19+ integrator = DiffEqBase. __init (jump_prob, alg, ForceJumpDispatch (); kwargs... )
20+ solve! (integrator)
21+ integrator. sol
22+ end
23+
1324# if passed a JumpProblem over a DiscreteProblem, and no aggregator is selected use
1425# SSAStepper
1526function DiffEqBase. __solve (jump_prob:: DiffEqBase.AbstractJumpProblem{P} ;
You can’t perform that action at this time.
0 commit comments