Skip to content

Commit 36dbe40

Browse files
committed
Update SystemStructure test
1 parent 6dd6890 commit 36dbe40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/dep_graphs.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rxs = [Reaction(k1, nothing, [S]),
1616
rs = ReactionSystem(rxs, t, [S,I,R], [k1,k2])
1717

1818

19-
#################################
19+
#################################
2020
# testing for Jumps / all dgs
2121
#################################
2222
js = convert(JumpSystem, rs)
@@ -119,7 +119,8 @@ eqs = [D(x) ~ w,
119119
D(z) ~ T*y - g,
120120
0 ~ x^2 + y^2 - L^2]
121121
pendulum = ODESystem(eqs, t, [x, y, w, z, T], [L, g], name=:pendulum)
122-
sss = SystemStructure(pendulum)
122+
sys = initialize_system_structure(pendulum)
123+
sss = structure(sys)
123124
@unpack graph, fullvars, varassoc = sss
124125
@test isequal(fullvars, [x, y, w, z, D(x), D(y), D(w), D(z), T])
125126
@test graph.fadjlist == sort.([[5, 3], [6, 4], [7, 1, 9], [8, 2, 9], [2, 1]])

0 commit comments

Comments
 (0)