Skip to content

Commit c916c81

Browse files
Fix OrdinaryDiffEq function imports in history_function test
Update test imports to use OrdinaryDiffEqCore instead of OrdinaryDiffEq for: - current_interpolant - loopheader! - perform_step! - loopfooter! These functions were moved from OrdinaryDiffEq to OrdinaryDiffEqCore in recent versions. This fixes remaining Interface test failures and ensures compatibility with the updated OrdinaryDiffEq ecosystem. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f5727da commit c916c81

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/interface/history_function.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using DelayDiffEq
2+
using OrdinaryDiffEqCore
23
using Test
34

45
# check constant extrapolation with problem with vanishing delays at t = 0
@@ -74,8 +75,8 @@ end
7475

7576
# add step to integrator
7677
@testset "update integrator" begin
77-
OrdinaryDiffEq.loopheader!(integrator)
78-
OrdinaryDiffEq.perform_step!(integrator, integrator.cache)
78+
OrdinaryDiffEqCore.loopheader!(integrator)
79+
OrdinaryDiffEqCore.perform_step!(integrator, integrator.cache)
7980
integrator.t = integrator.dt
8081
@test 0.01 < integrator.t < 1
8182
@test integrator.sol.t[end] == 0
@@ -85,7 +86,7 @@ end
8586
@testset "integrator interpolation" for deriv in (Val{0}, Val{1}),
8687
idxs in (nothing, [2])
8788
# expected value
88-
trueval = OrdinaryDiffEq.current_interpolant(0.01, integrator, idxs, deriv)
89+
trueval = OrdinaryDiffEqCore.current_interpolant(0.01, integrator, idxs, deriv)
8990

9091
# out-of-place
9192
history_notinplace.isout = false
@@ -103,7 +104,7 @@ end
103104
# add step to solution
104105
@testset "update solution" begin
105106
integrator.t = 0
106-
OrdinaryDiffEq.loopfooter!(integrator)
107+
OrdinaryDiffEqCore.loopfooter!(integrator)
107108
@test integrator.t == integrator.sol.t[end]
108109
end
109110

@@ -130,7 +131,7 @@ end
130131

131132
idxs == 0 && (idxs = nothing)
132133
# expected value
133-
trueval = OrdinaryDiffEq.current_interpolant(1, integrator, idxs, deriv)
134+
trueval = OrdinaryDiffEqCore.current_interpolant(1, integrator, idxs, deriv)
134135

135136
# out-of-place
136137
history_notinplace.isout = false

0 commit comments

Comments
 (0)