Skip to content

Commit 3b1fbc7

Browse files
test: update tests with removed time_varying_as_func
1 parent f91d994 commit 3b1fbc7

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
@@ -136,19 +136,7 @@ du = zeros(3)
136136
tgrad_iip(du, u, p, t)
137137
@test du == [0.0, -u[2], 0.0]
138138

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

0 commit comments

Comments
 (0)