From aa1bf14ae6d8e745722fa82455960e6d47afde63 Mon Sep 17 00:00:00 2001 From: Orjan Ameye Date: Mon, 28 Oct 2024 12:19:56 +0100 Subject: [PATCH] make SOSRA incompatible with non diagonal noise --- src/alg_utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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