diff --git a/Project.toml b/Project.toml index 079bca008..f51f636ad 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.1" +version = "2.0.2" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/problems/sde_problems.jl b/src/problems/sde_problems.jl index 242da803b..2e28757f5 100644 --- a/src/problems/sde_problems.jl +++ b/src/problems/sde_problems.jl @@ -94,7 +94,7 @@ struct SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND} <: kwargs::K noise_rate_prototype::ND seed::UInt64 - @add_kwonly function SDEProblem{iip}(f::AbstractSDEFunction{iip}, g, u0, + @add_kwonly function SDEProblem{iip}(f::AbstractSDEFunction{iip}, u0, tspan, p = NullParameters(); noise_rate_prototype = nothing, noise = nothing, seed = UInt64(0), @@ -109,22 +109,12 @@ struct SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND} <: noise, kwargs, noise_rate_prototype, seed) end - - function SDEProblem{iip}(f, g, u0, tspan, p = NullParameters(); kwargs...) where {iip} - SDEProblem(SDEFunction{iip}(f, g), g, u0, tspan, p; kwargs...) - end end TruncatedStacktraces.@truncate_stacktrace SDEProblem 3 1 2 -#= -function SDEProblem(f::AbstractSDEFunction,u0,tspan,p=NullParameters();kwargs...) - SDEProblem(f,f.g,u0,tspan,p;kwargs...) -end -=# - function SDEProblem(f::AbstractSDEFunction, u0, tspan, p = NullParameters(); kwargs...) - SDEProblem{isinplace(f)}(f, f.g, u0, tspan, p; kwargs...) + SDEProblem{isinplace(f)}(f, u0, tspan, p; kwargs...) end function SDEProblem(f, g, u0, tspan, p = NullParameters(); kwargs...)