Skip to content

Commit 36bc0c1

Browse files
committed
OrdinaryDiffEqCore interface was changed
1 parent cb8aa44 commit 36bc0c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2626
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2727
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2828
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
29+
OrdinaryDiffEqCore = "bbf590c4-e513-4bbe-9b18-05decba2e5d8"
30+
2931

3032
[compat]
3133
DiffEqBase = "6"

src/CodeGeneration.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using OrderedCollections: OrderedDict, OrderedSet
55
using DataFrames
6+
using OrdinaryDiffEqCore
67

78
#=
89
fieldnames(typeof(integrator)) = (:sol, :u, :du, :k, :t, :dt, :f, :p, :uprev, :uprev2, :duprev, :tprev, :alg,
@@ -1522,7 +1523,7 @@ function affectEvent!(integrator, stateEvent::Bool, eventIndex::Int)::Nothing
15221523
end
15231524

15241525
# Adapt step size
1525-
if eh.restart != NoRestart && supertype(typeof(integrator.alg)) == DifferentialEquations.OrdinaryDiffEq.OrdinaryDiffEqAdaptiveAlgorithm
1526+
if eh.restart != NoRestart && supertype(typeof(integrator.alg)) == OrdinaryDiffEqCore.OrdinaryDiffEqAdaptiveAlgorithm
15261527
DifferentialEquations.auto_dt_reset!(integrator)
15271528
DifferentialEquations.set_proposed_dt!(integrator, integrator.dt)
15281529
end

0 commit comments

Comments
 (0)