Skip to content

Commit b79da56

Browse files
test: remove use of deprecated @mtkbuild
1 parent 6b02bea commit b79da56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/initializationsystem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,15 +1670,15 @@ end
16701670
x[1] ~ 0.01exp(-1)
16711671
x[2] ~ 0.01cos(t)]
16721672

1673-
@mtkbuild sys = ODESystem(eqs, t)
1673+
@mtkcompile sys = System(eqs, t)
16741674
prob = ODEProblem(sys, [], (0.0, 1.0))
16751675
sol = solve(prob, Tsit5())
16761676
@test SciMLBase.successful_retcode(sol)
16771677
end
16781678

16791679
@testset "Defaults removed with ` => nothing` aren't retained" begin
16801680
@variables x(t)[1:2]
1681-
@mtkbuild sys = System([D(x[1]) ~ -x[1], x[1] + x[2] ~ 3], t; defaults = [x[1] => 1])
1681+
@mtkcompile sys = System([D(x[1]) ~ -x[1], x[1] + x[2] ~ 3], t; defaults = [x[1] => 1])
16821682
prob = ODEProblem(sys, [x[1] => nothing, x[2] => 1], (0.0, 1.0))
16831683
@test SciMLBase.initialization_status(prob) == SciMLBase.FULLY_DETERMINED
16841684
end
@@ -1696,7 +1696,7 @@ end
16961696
D(x) ~ r * x
16971697
end
16981698
end
1699-
@mtkbuild sys = Foo(p = "a")
1699+
@mtkcompile sys = Foo(p = "a")
17001700
prob = ODEProblem(sys, [], (0.0, 1.0))
17011701
@test prob.p.nonnumeric[1] isa Vector{AbstractString}
17021702
integ = init(prob)

0 commit comments

Comments
 (0)