You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""reactions in the Markovian part that trigger the change of the state of the delay channels or/and the state of the reactants upon initiation."""
75
-
delay_trigger::Dict{Int,T1}
76
-
"""reactions in the Markovian part that change the state of the delay channels or/and the state of the reactants in the middle of on-going delay reactions."""
77
-
delay_complete::Dict{Int,T2}
78
-
"""reactions that are initiated by delay trigger reactions and change the state of the delay channels or/and the state of the reactants upon completion."""
79
-
delay_interrupt::Dict{Int,T3}
80
-
"""collection of indices of reactions that can interrupt the delay reactions. of `delay_trigger`."""
81
-
delay_trigger_set::Vector{Int}
82
-
"""collection of indices of `delay_interrupt`."""
83
-
delay_interrupt_set::Vector{Int}
74
+
"""reactions in the Markovian part that trigger the change of the state of the delay channels or/and the state of the reactants upon initiation."""
75
+
delay_trigger::Dict{Int,T1}
76
+
"""reactions in the Markovian part that change the state of the delay channels or/and the state of the reactants in the middle of on-going delay reactions."""
77
+
delay_complete::Dict{Int,T2}
78
+
"""reactions that are initiated by delay trigger reactions and change the state of the delay channels or/and the state of the reactants upon completion."""
79
+
delay_interrupt::Dict{Int,T3}
80
+
"""collection of indices of reactions that can interrupt the delay reactions. of `delay_trigger`."""
functionDelayJumpProblem(p::P,a::A,dj::J,jc::C,vj::J2,rj::J3,mj::J4,djs::J5,de_chan0::deType,save_delay_channel::Bool) where {P,A,J,C,J2,J3,J4,J5,deType}
107
-
if!(typeof(a)<:AbstractDelayAggregatorAlgorithm)
108
-
error("To solve DelayJumpProblem, one has to use one of the delay aggregators.")
functionDelayJumpProblem(p::P,a::A,dj::J,jc::C,vj::J2,rj::J3,mj::J4,djs::J5,de_chan0::deType,save_delay_channel::Bool, kwargs::K) where {P,A,J,C,J2,J3,J4,J5,deType,K}
108
+
if!(typeof(a)<:AbstractDelayAggregatorAlgorithm)
109
+
error("To solve DelayJumpProblem, one has to use one of the delay aggregators.")
110
+
end
111
+
iip =isinplace_jump(p,rj)
112
+
DelayJumpProblem{iip,P,A,C,J,J2,J3,J4,J5,deType,K}(p, a, dj,jc,vj,rj,mj,djs,de_chan0,save_delay_channel, kwargs)
# function update_delayjumpsets(delayjumpsets::DelayJumpSet; kwargs...)
@@ -299,20 +305,20 @@ end
299
305
# return delayjumpsets_
300
306
# end
301
307
302
-
Base.summary(io::IO, prob::DelayJumpProblem) =string(DiffEqBase.parameterless_type(prob)," with problem ",DiffEqBase.parameterless_type(prob.prob)," and aggregator ",typeof(prob.aggregator))
308
+
Base.summary(io::IO, prob::DelayJumpProblem) =string(DiffEqBase.parameterless_type(prob)," with problem ",DiffEqBase.parameterless_type(prob.prob)," and aggregator ",typeof(prob.aggregator))
303
309
function Base.show(io::IO, mime::MIME"text/plain", A::DelayJumpProblem)
304
-
println(io,summary(A))
305
-
println(io,"Number of constant rate jumps: ",A.discrete_jump_aggregation ===nothing?0:num_constant_rate_jumps(A.discrete_jump_aggregation))
306
-
println(io,"Number of variable rate jumps: ",length(A.variable_jumps))
310
+
println(io,summary(A))
311
+
println(io,"Number of constant rate jumps: ",A.discrete_jump_aggregation ===nothing?0:num_constant_rate_jumps(A.discrete_jump_aggregation))
312
+
println(io,"Number of variable rate jumps: ",length(A.variable_jumps))
307
313
if A.regular_jump !==nothing
308
-
println(io,"Have a regular jump")
314
+
println(io,"Have a regular jump")
309
315
end
310
316
if (A.massaction_jump !==nothing) && (get_num_majumps(A.massaction_jump) >0)
311
-
println(io,"Have a mass action jump")
317
+
println(io,"Have a mass action jump")
312
318
end
313
319
if A.delayjumpsets !==nothing
314
-
println(io,"Number of delay trigger reactions: ",length(A.delayjumpsets.delay_trigger))
315
-
println(io,"Number of delay interrupt reactions: ",length(A.delayjumpsets.delay_interrupt))
320
+
println(io,"Number of delay trigger reactions: ",length(A.delayjumpsets.delay_trigger))
321
+
println(io,"Number of delay interrupt reactions: ",length(A.delayjumpsets.delay_interrupt))
0 commit comments