Skip to content

Commit 58498ec

Browse files
Make package compatible with OrdinaryDiffEq v6.6 and v6.7 (#130)
1 parent 7b3564b commit 58498ec

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DiffEqBase = "6"
2626
DiffEqDevTools = "2"
2727
ForwardDiff = "0.10"
2828
GaussianDistributions = "0.5"
29-
OrdinaryDiffEq = "5.71 - 6.5"
29+
OrdinaryDiffEq = "6.2 - 6.7"
3030
RecipesBase = "1"
3131
RecursiveArrayTools = "2"
3232
Reexport = "0.2, 1.0"

src/alg_utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ OrdinaryDiffEq.alg_autodiff(alg::EK1{CS,AD}) where {CS,AD} = AD
88
OrdinaryDiffEq.alg_difftype(alg::EK1{CS,AD,DiffType}) where {CS,AD,DiffType} = DiffType
99
OrdinaryDiffEq.standardtag(alg::AbstractEK) = false
1010
OrdinaryDiffEq.standardtag(alg::EK1{CS,AD,DiffType,ST}) where {CS,AD,DiffType,ST} = ST
11+
OrdinaryDiffEq.concrete_jac(alg::AbstractEK) = nothing
12+
OrdinaryDiffEq.concrete_jac(alg::EK1{CS,AD,DiffType,ST,CJ}) where {CS,AD,DiffType,ST,CJ} =
13+
CJ
14+
1115
@inline DiffEqBase.get_tmp_cache(integ, alg::EK1, cache) = (cache.tmp, cache.atmp)
1216
OrdinaryDiffEq.get_chunksize(alg::AbstractEK) = Val(0)
1317
OrdinaryDiffEq.isfsal(alg::AbstractEK) = false

src/algorithms.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ForwardDiff.jl to compute Jacobians.
4848
4949
# [References](@ref references)
5050
"""
51-
struct EK1{CS,AD,DiffType,ST,DT,IT} <: AbstractEK
51+
struct EK1{CS,AD,DiffType,ST,CJ,DT,IT} <: AbstractEK
5252
order::Int
5353
diffusionmodel::DT
5454
smooth::Bool
@@ -63,11 +63,13 @@ EK1(;
6363
autodiff=true,
6464
diff_type=Val{:forward},
6565
standardtag=true,
66+
concrete_jac=nothing,
6667
) = EK1{
6768
chunk_size,
6869
autodiff,
6970
diff_type,
7071
standardtag,
72+
concrete_jac,
7173
typeof(diffusionmodel),
7274
typeof(initialization),
7375
}(

0 commit comments

Comments
 (0)