Skip to content

Commit 5415947

Browse files
added unpack
1 parent 0b72d4c commit 5415947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simple_regular_solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ function DiffEqBase.solve(jump_prob::JumpProblem, alg::SimpleAdaptiveTauLeaping;
171171
saveat = nothing)
172172
validate_pure_leaping_inputs(jump_prob, alg) ||
173173
error("SimpleAdaptiveTauLeaping can only be used with PureLeaping JumpProblem with a MassActionJump.")
174-
prob = jump_prob.prob
175-
rng = DEFAULT_RNG
174+
175+
@unpack prob, rng = jump_prob
176176
(seed !== nothing) && seed!(rng, seed)
177177

178178
maj = jump_prob.massaction_jump

0 commit comments

Comments
 (0)