Skip to content

Commit 01e7527

Browse files
some
1 parent af0ec6e commit 01e7527

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/simple_regular_solve.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@ function DiffEqBase.solve(jump_prob::JumpProblem, alg::SimpleAdaptiveTauLeaping;
130130

131131
maj = jump_prob.massaction_jump
132132
numjumps = get_num_majumps(maj)
133+
rj = jump_prob.regular_jump
133134
# Extract rates
134-
rate = jump_prob.regular_jump !== nothing ? jump_prob.regular_jump.rate :
135+
rate = rj !== nothing ? rj.rate :
135136
(out, u, p, t) -> begin
136137
for j in 1:numjumps
137138
out[j] = evalrxrate(u, j, maj)
138139
end
139140
end
140-
c = jump_prob.regular_jump !== nothing ? jump_prob.regular_jump.c : nothing
141+
c = rj !== nothing ? rj.c : nothing
141142
u0 = copy(prob.u0)
142143
tspan = prob.tspan
143144
p = prob.p

0 commit comments

Comments
 (0)