Skip to content

Commit 3d14d83

Browse files
Merge pull request #102 from ChrisRackauckas-Claude/fix-deprecation-warnings-20260208
Fix deprecation warnings
2 parents 871fc9b + 54bd28d commit 3d14d83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/discrete_tests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using SimpleDiffEq, Test
33
prob = DiscreteProblem(0.5, (0.0, 1.0))
44
sol = solve(prob, SimpleFunctionMap())
55

6-
@test sol[1] == sol[end]
6+
@test sol.u[1] == sol.u[end]
77

88
integrator = init(prob, SimpleFunctionMap())
99
step!(integrator)
@@ -14,7 +14,7 @@ step!(integrator)
1414
prob2 = DiscreteProblem(rand(4, 2), (0.0, 1.0))
1515
sol = solve(prob2, SimpleFunctionMap())
1616

17-
@test sol[1] == sol[end]
17+
@test sol.u[1] == sol.u[end]
1818

1919
integrator = init(prob, SimpleFunctionMap())
2020
step!(integrator)
@@ -25,7 +25,7 @@ step!(integrator)
2525
prob = DiscreteProblem((u, p, t) -> 1.01u, 0.5, (0.0, 1.0))
2626
sol = solve(prob, SimpleFunctionMap())
2727

28-
@test sol[end] 0.505
28+
@test sol.u[end] 0.505
2929

3030
integrator = init(prob, SimpleFunctionMap())
3131
step!(integrator)
@@ -37,7 +37,7 @@ step!(integrator)
3737
prob = DiscreteProblem((du, u, p, t) -> du .= 1.01 .* u, rand(4, 2), (0.0, 1.0))
3838
sol = solve(prob, SimpleFunctionMap())
3939

40-
@test sol[end] ./ sol[1] fill(1.01, 4, 2)
40+
@test sol.u[end] ./ sol.u[1] fill(1.01, 4, 2)
4141

4242
integrator = init(prob, SimpleFunctionMap())
4343
step!(integrator)

test/gpusimpleatsit5_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sol2 = solve(
4545
)
4646
sol3 = solve(odeoop, SimpleATsit5(), dt = dt, saveat = 0.0:0.1:100.0)
4747

48-
@test sol[20] sol2[20] atol = 1.0e-5
48+
@test sol.u[20] sol2.u[20] atol = 1.0e-5
4949
@test sol2.u[20] sol3.u[20]
5050
@test sol.t sol2.t
5151

0 commit comments

Comments
 (0)