diff --git a/Project.toml b/Project.toml index b6d8e29f9..f3262a430 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "2.0.5" +version = "2.0.6" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/problems/sde_problems.jl b/src/problems/sde_problems.jl index d11899b7b..b3840db48 100644 --- a/src/problems/sde_problems.jl +++ b/src/problems/sde_problems.jl @@ -145,6 +145,11 @@ function SplitSDEProblem{iip}(f1, f2, g, u0, tspan, p = NullParameters(); kwargs SplitSDEProblem{iip}(SplitSDEFunction(f1, f2, g), u0, tspan, p; kwargs...) end +function SplitSDEProblem(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...) + ff = SplitSDEFunction(f1, f2, g) + SplitSDEProblem{isinplace(ff)}(ff, u0, tspan, p; kwargs...) +end + function SplitSDEProblem(f::SplitSDEFunction, u0, tspan, p = NullParameters(); kwargs...) SplitSDEProblem{isinplace(f)}(f, u0, tspan, p; kwargs...) end @@ -171,8 +176,14 @@ $(TYPEDEF) """ struct DynamicalSDEProblem{iip} <: AbstractDynamicalSDEProblem end +function DynamicalSDEProblem(f1, f2, g, v0, u0, tspan, p = NullParameters(); kwargs...) + ff = DynamicalSDEFunction(f1, f2, g) + DynamicalSDEProblem{isinplace(ff)}(ff, v0, u0, tspan, p; kwargs...) +end + function DynamicalSDEProblem{iip}(f1, f2, g, v0, u0, tspan, p = NullParameters(); kwargs...) where {iip} - DynamicalSDEProblem{iip}(DynamicalSDEFunction(f1, f2, g), v0, u0, tspan, p; kwargs...) + ff = DynamicalSDEFunction(f1, f2, g) + DynamicalSDEProblem{iip}(ff, v0, u0, tspan, p; kwargs...) end function DynamicalSDEProblem(f::DynamicalSDEFunction, v0, u0, tspan,