diff --git a/src/alg_utils.jl b/src/alg_utils.jl index b7b15256..0a7a3a14 100644 --- a/src/alg_utils.jl +++ b/src/alg_utils.jl @@ -169,8 +169,8 @@ alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SRA) = true alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SRA1) = true alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SRA2) = true alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SRA3) = true -alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SOSRA) = true -alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SOSRA2) = true +alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SOSRA) = is_diagonal_noise(prob) +alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::SOSRA2) = is_diagonal_noise(prob) alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::DRI1) = true alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::DRI1NM) = is_diagonal_noise(prob) alg_compatible(prob::DiffEqBase.AbstractSDEProblem, alg::RI1) = true