Skip to content

Commit 9666196

Browse files
test: fix initialization in lowering_solving test
1 parent 3c85f50 commit 9666196

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/lowering_solving.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ u0 = [lorenz1.x => 1.0,
5959
lorenz1.z => 0.0,
6060
lorenz2.x => 0.0,
6161
lorenz2.y => 1.0,
62-
lorenz2.z => 0.0,
63-
α => 2.0]
62+
lorenz2.z => 0.0]
6463

6564
p = [lorenz1.σ => 10.0,
6665
lorenz1.ρ => 28.0,
@@ -73,5 +72,5 @@ p = [lorenz1.σ => 10.0,
7372
tspan = (0.0, 100.0)
7473
prob = ODEProblem(connected, u0, tspan, p)
7574
sol = solve(prob, Rodas5())
76-
@test maximum(sol[2, :] + sol[6, :] + 2sol[1, :]) < 1e-12
75+
@test maximum(sol[lorenz1.x] + sol[lorenz2.y] + 2sol[α]) < 1e-12
7776
#using Plots; plot(sol,idxs=(:α,Symbol(lorenz1.x),Symbol(lorenz2.y)))

0 commit comments

Comments
 (0)