Skip to content

Commit 10f71ab

Browse files
test: fix solution interface test
1 parent de74ba0 commit 10f71ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/downstream/solution_interface.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ eqs = [D(x) ~ σ * (y - x),
7979
@variables a(t) α(t)
8080
connections = [0 ~ lorenz1.x + lorenz2.y + a * γ,
8181
α ~ 2lorenz1.x + a * γ]
82-
@named sys = ODESystem(connections, t, [a, α], [γ], systems = [lorenz1, lorenz2])
83-
sys_simplified = complete(structural_simplify(sys))
82+
@mtkbuild sys = ODESystem(connections, t, [a, α], [γ], systems = [lorenz1, lorenz2])
8483

8584
u0 = [lorenz1.x => 1.0,
8685
lorenz1.y => 0.0,
@@ -99,7 +98,7 @@ p = [lorenz1.σ => 10.0,
9998
γ => 2.0]
10099

101100
tspan = (0.0, 100.0)
102-
prob = ODEProblem(sys_simplified, u0, tspan, p)
101+
prob = ODEProblem(sys, u0, tspan, p)
103102
sol = solve(prob, Rodas4())
104103

105104
@test_throws ArgumentError sol[x]

0 commit comments

Comments
 (0)