diff --git a/src/alg_utils.jl b/src/alg_utils.jl index 0d49bd48..589f938c 100644 --- a/src/alg_utils.jl +++ b/src/alg_utils.jl @@ -133,22 +133,22 @@ beta1_default(alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm isdtchangeable(alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm}) = true -alg_interpretation(alg::StochasticDiffEqAlgorithm) = :Ito -alg_interpretation(alg::EulerHeun) = :Stratonovich -alg_interpretation(alg::LambaEulerHeun) = :Stratonovich -alg_interpretation(alg::KomBurSROCK2) = :Stratonovich -alg_interpretation(alg::RKMil{interpretation}) where {interpretation} = interpretation -alg_interpretation(alg::SROCK1{interpretation,E}) where {interpretation,E} = interpretation -alg_interpretation(alg::RKMilCommute) = alg.interpretation -alg_interpretation(alg::RKMilGeneral) = alg.interpretation -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 - -alg_interpretation(alg::RS1) = :Stratonovich -alg_interpretation(alg::RS2) = :Stratonovich - -alg_interpretation(alg::NON) = :Stratonovich -alg_interpretation(alg::COM) = :Stratonovich -alg_interpretation(alg::NON2) = :Stratonovich +SciMLBase.alg_interpretation(alg::StochasticDiffEqAlgorithm) = :Ito +SciMLBase.alg_interpretation(alg::EulerHeun) = :Stratonovich +SciMLBase.alg_interpretation(alg::LambaEulerHeun) = :Stratonovich +SciMLBase.alg_interpretation(alg::KomBurSROCK2) = :Stratonovich +SciMLBase.alg_interpretation(alg::RKMil{interpretation}) where {interpretation} = interpretation +SciMLBase.alg_interpretation(alg::SROCK1{interpretation,E}) where {interpretation,E} = interpretation +SciMLBase.alg_interpretation(alg::RKMilCommute) = alg.interpretation +SciMLBase.alg_interpretation(alg::RKMilGeneral) = alg.interpretation +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 + +SciMLBase.alg_interpretation(alg::RS1) = :Stratonovich +SciMLBase.alg_interpretation(alg::RS2) = :Stratonovich + +SciMLBase.alg_interpretation(alg::NON) = :Stratonovich +SciMLBase.alg_interpretation(alg::COM) = :Stratonovich +SciMLBase.alg_interpretation(alg::NON2) = :Stratonovich alg_compatible(prob, alg::Union{StochasticDiffEqAlgorithm,StochasticDiffEqRODEAlgorithm}) = true alg_compatible(prob, alg::StochasticDiffEqAlgorithm) = false