Skip to content

Commit 81f62c4

Browse files
Merge pull request #62 from isaacsas/depgr-v1-fix
fix vector initialization for 1.0
2 parents e923cfc + a1a061a commit 81f62c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/massaction_jump_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function depgraph_from_network(rn, specmap, jset)
163163
end
164164

165165
# convert to Vectors of Vectors
166-
dep_graph = Vector{Vector{Int}}(numrxs)
166+
dep_graph = Vector{Vector{Int}}(undef,numrxs)
167167
for jidx in 1:numrxs
168168
dep_graph[jidx] = [dep for dep in dep_sets[jidx]]
169169
end

test/mass_act_jump_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using DiffEqBiological, DiffEqJump, DiffEqBase, Test, Statistics
33
dotestmean = true
44
doprintmeans = false
55
reltol = .01 # required test accuracy
6-
algs = (Direct(),)# SortingDirect())
6+
algs = (Direct(),SortingDirect())
77

88
# run the given number of SSAs and return the mean
99
function runSSAs(jump_prob, Nsims, idx)

0 commit comments

Comments
 (0)