|
1 |
| -using OrdinaryDiffEq, NLsolve, RecursiveArrayTools, Test, ArrayInterfaceCore |
| 1 | +using OrdinaryDiffEq, NLsolve, RecursiveArrayTools, Test, ArrayInterface |
2 | 2 | function lorenz(du, u, p, t)
|
3 | 3 | du[1] = 10.0 * (u[2] - u[1])
|
4 | 4 | du[2] = u[1] * (28.0 - u[3]) - u[2]
|
5 | 5 | du[3] = u[1] * u[2] - (8 / 3) * u[3]
|
6 | 6 | end
|
7 | 7 | u0 = ArrayPartition([1.0, 0.0], [0.0])
|
8 |
| -@test ArrayInterfaceCore.zeromatrix(u0) isa Matrix |
| 8 | +@test ArrayInterface.zeromatrix(u0) isa Matrix |
9 | 9 | tspan = (0.0, 100.0)
|
10 | 10 | prob = ODEProblem(lorenz, u0, tspan)
|
11 | 11 | sol = solve(prob, Tsit5())
|
|
39 | 39 | @test solve(ODEProblem(dyn,
|
40 | 40 | ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
|
41 | 41 | ArrayPartition(zeros(1), [0.75])),
|
42 |
| - (0.0, 1.0)), AutoTsit5(Rodas5())).retcode == :Success |
| 42 | + (0.0, 1.0)), AutoTsit5(Rodas5())).retcode == ReturnCode.Success |
43 | 43 |
|
44 | 44 | if VERSION < v"1.7"
|
45 | 45 | @test solve(ODEProblem(dyn,
|
46 | 46 | ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
|
47 | 47 | ArrayPartition(zeros(1), [0.75])),
|
48 |
| - (0.0, 1.0)), Rodas5()).retcode == :Success |
| 48 | + (0.0, 1.0)), Rodas5()).retcode == ReturnCode.Success |
49 | 49 | else
|
50 | 50 | @test_broken solve(ODEProblem(dyn,
|
51 | 51 | ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
|
52 | 52 | ArrayPartition(zeros(1), [0.75])),
|
53 |
| - (0.0, 1.0)), Rodas5()).retcode == :Success |
| 53 | + (0.0, 1.0)), Rodas5()).retcode == ReturnCode.Success |
54 | 54 | end
|
0 commit comments