Skip to content

Commit 6abcb74

Browse files
Update solve.jl
1 parent aa5607c commit 6abcb74

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/solve.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ function DiffEqBase.__solve(jump_prob::DiffEqBase.AbstractJumpProblem; kwargs...
1818
end
1919

2020
function DiffEqBase.__init(_jump_prob::DiffEqBase.AbstractJumpProblem{P},
21-
alg::DiffEqBase.DEAlgorithm, timeseries = [], ts = [], ks = [],
22-
recompile::Type{Val{recompile_flag}} = Val{true};
21+
alg::DiffEqBase.DEAlgorithm} = Val{true};
2322
callback = nothing, seed = nothing,
2423
alias_jump = Threads.threadid() == 1,
25-
kwargs...) where {P, recompile_flag}
24+
kwargs...) where {P}
2625
if alias_jump
2726
jump_prob = _jump_prob
2827
reset_jump_problem!(jump_prob, seed)
@@ -33,12 +32,12 @@ function DiffEqBase.__init(_jump_prob::DiffEqBase.AbstractJumpProblem{P},
3332
# DDEProblems do not have a recompile_flag argument
3433
if jump_prob.prob isa DiffEqBase.AbstractDDEProblem
3534
# callback comes after jump consistent with SSAStepper
36-
integrator = init(jump_prob.prob, alg, timeseries, ts, ks;
35+
integrator = init(jump_prob.prob, alg;
3736
callback = CallbackSet(jump_prob.jump_callback, callback),
3837
kwargs...)
3938
else
4039
# callback comes after jump consistent with SSAStepper
41-
integrator = init(jump_prob.prob, alg, timeseries, ts, ks, recompile;
40+
integrator = init(jump_prob.prob, alg;
4241
callback = CallbackSet(jump_prob.jump_callback, callback),
4342
kwargs...)
4443
end

0 commit comments

Comments
 (0)