@@ -122,9 +122,11 @@ function DelayJumpProblem(p::P, a::A, dj::J, jc::C, vj::J2, rj::J3, mj::J4, djs:
122122 error (" To solve DelayJumpProblem, one has to use one of the delay aggregators." )
123123 end
124124 iip = isinplace_jump (p, rj)
125- DelayJumpProblem {iip, P, A, C, J, J2, J3, J4, J5, deType, R, K} (p, a, dj, jc, vj, rj, mj,
126- djs, de_chan0,
127- save_delay_channel, rng, kwargs)
125+ DelayJumpProblem {iip, P, A, C, J, J2, J3, J4, J5, deType, R, K} (p, a, dj, jc, vj, rj,
126+ mj,
127+ djs, de_chan0,
128+ save_delay_channel, rng,
129+ kwargs)
128130end
129131
130132"""
@@ -182,7 +184,6 @@ function DelayJumpProblem(prob, aggregator::AbstractDelayAggregatorAlgorithm,
182184 bvrjs = nothing
183185 cvrjs = jumps. variable_jumps
184186 end
185-
186187
187188 # # Constant Rate Handling
188189 t, end_time, u = prob. tspan[1 ], prob. tspan[2 ], prob. u0
@@ -219,12 +220,16 @@ function DelayJumpProblem(prob, aggregator::AbstractDelayAggregatorAlgorithm,
219220 DelayJumpProblem{iip, typeof (new_prob), typeof (aggregator), typeof (callbacks),
220221 typeof (disc_agg), typeof (cont_agg),
221222 typeof (jumps. regular_jump), typeof (maj), typeof (delayjumpsets),
222- typeof (de_chan0), typeof (rng), typeof (solkwargs)}(new_prob, aggregator, disc_agg,
223- callbacks,
224- cont_agg,
225- jumps. regular_jump, maj,
226- delayjumpsets, de_chan0,
227- save_delay_channel, rng, solkwargs)
223+ typeof (de_chan0), typeof (rng), typeof (solkwargs)}(new_prob, aggregator,
224+ disc_agg,
225+ callbacks,
226+ cont_agg,
227+ jumps. regular_jump,
228+ maj,
229+ delayjumpsets,
230+ de_chan0,
231+ save_delay_channel,
232+ rng, solkwargs)
228233end
229234
230235make_kwarg (; kwargs... ) = kwargs
@@ -264,7 +269,7 @@ function DelayJumpProblem(js::JumpSystem, prob, aggregator, delayjumpset, de_cha
264269 crjs = ConstantRateJump[assemble_crj (js, j, statetoid) for j in eqs. x[2 ]]
265270 vrjs = VariableRateJump[assemble_vrj (js, j, statetoid) for j in eqs. x[3 ]]
266271 # ((prob isa DiscreteProblem) && !isempty(vrjs)) &&
267- # error("Use continuous problems such as an ODEProblem or a SDEProblem with VariableRateJumps")
272+ # error("Use continuous problems such as an ODEProblem or a SDEProblem with VariableRateJumps")
268273 jset = JumpSet (Tuple (vrjs), Tuple (crjs), nothing , majs)
269274
270275 if needs_vartojumps_map (aggregator) || needs_depgraph (aggregator)
@@ -326,7 +331,8 @@ function DiffEqBase.remake(thing::DelayJumpProblem; kwargs...)
326331 DelayJumpProblem (dprob, thing. aggregator, thing. discrete_jump_aggregation,
327332 thing. jump_callback,
328333 thing. variable_jumps, thing. regular_jump, thing. massaction_jump,
329- delayjumpsets, de_chan0, thing. save_delay_channel, thing. rng, thing. kwargs)
334+ delayjumpsets, de_chan0, thing. save_delay_channel, thing. rng,
335+ thing. kwargs)
330336end
331337
332338function update_delayjumpsets (delayjumpsets:: DelayJumpSet ; kwargs... )
0 commit comments