From e7b4602f21973b252e3cbce9cbb68cc4f8381deb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 May 2022 15:06:41 +0200 Subject: [PATCH] CompatHelper: bump compat for OrdinaryDiffEq to 6, (keep existing compat) (#153) * CompatHelper: bump compat for OrdinaryDiffEq to 6, (keep existing compat) * Make 6.13 explicit * Add the SciML traits for our solvers Co-authored-by: CompatHelper Julia Co-authored-by: Nathanael Bosch --- Project.toml | 4 +++- src/ProbNumDiffEq.jl | 1 + src/alg_utils.jl | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f766a1a56..76f2dbf70 100644 --- a/Project.toml +++ b/Project.toml @@ -15,6 +15,7 @@ PSDMatrices = "fe68d972-6fd8-4755-bdf0-97d4c54cefdc" RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" +SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a" TaylorIntegration = "92b13dbe-c966-51a2-8445-caca9f8a7d42" @@ -27,11 +28,12 @@ DiffEqDevTools = "2" ForwardDiff = "0.10" GaussianDistributions = "0.5" Octavian = "0.3" -OrdinaryDiffEq = "6.2 - 6.12" +OrdinaryDiffEq = "6.2 - 6.13" PSDMatrices = "0.4.2" RecipesBase = "1" RecursiveArrayTools = "2" Reexport = "0.2, 1.0" +SciMLBase = "1.34" StructArrays = "0.4,0.5, 0.6" TaylorIntegration = "0.8, 0.9" TaylorSeries = "0.10, 0.11, 0.12" diff --git a/src/ProbNumDiffEq.jl b/src/ProbNumDiffEq.jl index 0334878f6..928bd50ad 100644 --- a/src/ProbNumDiffEq.jl +++ b/src/ProbNumDiffEq.jl @@ -16,6 +16,7 @@ try catch import DiffEqBase.SciMLBase: interpret_vars, getsyms end +using SciMLBase import Base: copy, copy!, show, size, ndims, similar stack(x) = copy(reduce(hcat, x)') diff --git a/src/alg_utils.jl b/src/alg_utils.jl index 4165be8d9..4c7a5d011 100644 --- a/src/alg_utils.jl +++ b/src/alg_utils.jl @@ -36,3 +36,7 @@ OrdinaryDiffEq.ispredictive(alg::AbstractEK) = false # not sure, maybe Gustafsso # OrdinaryDiffEq.uses_uprev(alg::, adaptive::Bool) = adaptive OrdinaryDiffEq.is_mass_matrix_alg(alg::AbstractEK) = true + +SciMLBase.isautodifferentiable(alg::AbstractEK) = true +SciMLBase.allows_arbitrary_number_types(alg::AbstractEK) = true +SciMLBase.allowscomplex(alg::AbstractEK) = false