Skip to content

Commit

Permalink
Make cache vector of same type as u0
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen authored Nov 28, 2019
1 parent 53b396b commit 072134d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple_regular_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function DiffEqBase.solve(jump_prob::JumpProblem,alg::SimpleTauLeaping;
c = rj.c
dc = zero(rj.dc)
fill!(dc,0)
rate_cache = zeros(size(dc,2))
rate_cache = zeros(eltype(prob.u0), size(dc,2))

u0 = copy(prob.u0)
tspan = prob.tspan
Expand Down

0 comments on commit 072134d

Please sign in to comment.