Skip to content

Commit 6eefb4e

Browse files
committed
alg_interpretation from SciMLBase
1 parent e02a78b commit 6eefb4e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/alg_utils.jl

+16-16
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,22 @@ beta1_default(alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm
133133

134134
isdtchangeable(alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm}) = true
135135

136-
alg_interpretation(alg::StochasticDiffEqAlgorithm) = :Ito
137-
alg_interpretation(alg::EulerHeun) = :Stratonovich
138-
alg_interpretation(alg::LambaEulerHeun) = :Stratonovich
139-
alg_interpretation(alg::KomBurSROCK2) = :Stratonovich
140-
alg_interpretation(alg::RKMil{interpretation}) where {interpretation} = interpretation
141-
alg_interpretation(alg::SROCK1{interpretation,E}) where {interpretation,E} = interpretation
142-
alg_interpretation(alg::RKMilCommute) = alg.interpretation
143-
alg_interpretation(alg::RKMilGeneral) = alg.interpretation
144-
alg_interpretation(alg::ImplicitRKMil{CS,AD,F,P,FDT,ST,CJ,N,T2,Controller,interpretation}) where {CS,AD,F,P,FDT,ST,CJ,N,T2,Controller,interpretation} = interpretation
145-
146-
alg_interpretation(alg::RS1) = :Stratonovich
147-
alg_interpretation(alg::RS2) = :Stratonovich
148-
149-
alg_interpretation(alg::NON) = :Stratonovich
150-
alg_interpretation(alg::COM) = :Stratonovich
151-
alg_interpretation(alg::NON2) = :Stratonovich
136+
SciMLBase.alg_interpretation(alg::StochasticDiffEqAlgorithm) = :Ito
137+
SciMLBase.alg_interpretation(alg::EulerHeun) = :Stratonovich
138+
SciMLBase.alg_interpretation(alg::LambaEulerHeun) = :Stratonovich
139+
SciMLBase.alg_interpretation(alg::KomBurSROCK2) = :Stratonovich
140+
SciMLBase.alg_interpretation(alg::RKMil{interpretation}) where {interpretation} = interpretation
141+
SciMLBase.alg_interpretation(alg::SROCK1{interpretation,E}) where {interpretation,E} = interpretation
142+
SciMLBase.alg_interpretation(alg::RKMilCommute) = alg.interpretation
143+
SciMLBase.alg_interpretation(alg::RKMilGeneral) = alg.interpretation
144+
SciMLBase.alg_interpretation(alg::ImplicitRKMil{CS,AD,F,P,FDT,ST,CJ,N,T2,Controller,interpretation}) where {CS,AD,F,P,FDT,ST,CJ,N,T2,Controller,interpretation} = interpretation
145+
146+
SciMLBase.alg_interpretation(alg::RS1) = :Stratonovich
147+
SciMLBase.alg_interpretation(alg::RS2) = :Stratonovich
148+
149+
SciMLBase.alg_interpretation(alg::NON) = :Stratonovich
150+
SciMLBase.alg_interpretation(alg::COM) = :Stratonovich
151+
SciMLBase.alg_interpretation(alg::NON2) = :Stratonovich
152152

153153
alg_compatible(prob, alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm}) = true
154154
alg_compatible(prob, alg::StochasticDiffEqAlgorithm) = false

0 commit comments

Comments
 (0)