Skip to content

Commit 0755daa

Browse files
test: update tests with removed time_varying_as_func
1 parent cd479c1 commit 0755daa

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/odesystem.jl

+1-13
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,7 @@ du = zeros(3)
135135
tgrad_iip(du, u, p, t)
136136
@test du == [0.0, -u[2], 0.0]
137137

138-
@parameters σ′(t - 1)
139-
eqs = [D(x) ~ σ′ * (y - x),
140-
D(y) ~ x *- z) - y,
141-
D(z) ~ x * y - β * z * κ]
142-
@named de = ODESystem(eqs, t)
143-
test_diffeq_inference("global iv-varying", de, t, (x, y, z), (σ′, ρ, β))
144-
145-
f = generate_function(de, [x, y, z], [σ′, ρ, β], expression = Val{false})[2]
146-
du = [0.0, 0.0, 0.0]
147-
f(du, [1.0, 2.0, 3.0], [x -> x + 7, 2, 3], 5.0)
148-
@test du [11, -3, -7]
149-
150-
@parameters σ(..)
138+
@parameters::Function)(..)
151139
eqs = [D(x) ~ σ(t - 1) * (y - x),
152140
D(y) ~ x *- z) - y,
153141
D(z) ~ x * y - β * z * κ]

0 commit comments

Comments
 (0)