Skip to content

Commit

Permalink
add alg_order trait
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 2, 2023
1 parent 37f466b commit dfb6228
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common_interface/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -554,6 +556,8 @@ Base.@pure function ARKODE(stiffness = Implicit();
prec_side)
end

SciMLBase.alg_order(alg::Union{SundialsODEAlgorithm,SundialsDAEAlgorithm}) = 5

# DAE Algorithms
"""
```julia
Expand Down

0 comments on commit dfb6228

Please sign in to comment.