From dfb622835c5bc7921fb94e377b6688cba4fbbf9c Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 2 Jul 2023 05:12:45 -0400 Subject: [PATCH 1/2] add alg_order trait --- src/common_interface/algorithms.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common_interface/algorithms.jl b/src/common_interface/algorithms.jl index f05269d..91e5bbf 100644 --- a/src/common_interface/algorithms.jl +++ b/src/common_interface/algorithms.jl @@ -5,6 +5,8 @@ abstract type SundialsODEAlgorithm{Method, LinearSolver} <: DiffEqBase.AbstractO abstract type SundialsDAEAlgorithm{LinearSolver} <: DiffEqBase.AbstractDAEAlgorithm end abstract type SundialsNonlinearSolveAlgorithm{LinearSolver} end +SciMLBase.alg_order(alg::Union{SundialsODEAlgorithm,SundialsDAEAlgorithm}) = alg.max_order + # ODE Algorithms """ ```julia @@ -554,6 +556,8 @@ Base.@pure function ARKODE(stiffness = Implicit(); prec_side) end +SciMLBase.alg_order(alg::Union{SundialsODEAlgorithm,SundialsDAEAlgorithm}) = 5 + # DAE Algorithms """ ```julia From 0f046225987cd8a132b7e56b75c0d2ada115d1fb Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 2 Jul 2023 05:24:56 -0400 Subject: [PATCH 2/2] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0647985..fab7945 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Sundials" uuid = "c3572dad-4567-51f8-b174-8c6c989267f4" authors = ["Chris Rackauckas "] -version = "4.19.1" +version = "4.19.2" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"