Skip to content

Commit

Permalink
alg_interpretation from SciMLBase
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed Aug 30, 2024
1 parent e02a78b commit 6eefb4e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eefb4e

Please sign in to comment.