Skip to content

Commit 6cbc8ea

Browse files
authored
Merge pull request #715 from isaacsas/drop-nums-in-reactionsystems
drop internal use of Nums for assemble_diffusion
2 parents c1e9cdf + abc393a commit 6cbc8ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ function assemble_drift(rs; combinatoric_ratelaws=true, as_odes=true)
221221
end
222222

223223
function assemble_diffusion(rs, noise_scaling; combinatoric_ratelaws=true)
224-
eqs = fill(Num(0), length(rs.states), length(rs.eqs))
224+
eqs = Matrix{Any}(undef, length(rs.states), length(rs.eqs))
225+
eqs .= 0
225226
species_to_idx = Dict((x => i for (i,x) in enumerate(rs.states)))
226227

227228
for (j,rx) in enumerate(rs.eqs)

0 commit comments

Comments
 (0)