From 6eefb4e4af7e5174d0a26a18b0b48a8095f36d80 Mon Sep 17 00:00:00 2001 From: Hossein Pourbozorg Date: Fri, 30 Aug 2024 14:06:46 +0330 Subject: [PATCH] `alg_interpretation` from SciMLBase --- src/alg_utils.jl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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