Skip to content

Commit 7a7232a

Browse files
some
1 parent fb72149 commit 7a7232a

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
@@ -129,14 +129,15 @@ function DiffEqBase.solve(jump_prob::JumpProblem, alg::SimpleAdaptiveTauLeaping;
129129

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

0 commit comments

Comments
 (0)