@@ -123,12 +123,12 @@ function SDEProblem(f::AbstractSDEFunction,u0,tspan,p=NullParameters();kwargs...
123123end
124124=#
125125
126- function SDEProblem (f:: AbstractSDEFunction , g, u0, tspan, p = NullParameters (); kwargs... )
127- SDEProblem {isinplace(f)} (f, g, u0, tspan, p; kwargs... )
126+ function SDEProblem (f:: AbstractSDEFunction , u0, tspan, p = NullParameters (); kwargs... )
127+ SDEProblem {isinplace(f)} (f, f . g, u0, tspan, p; kwargs... )
128128end
129129
130130function SDEProblem (f, g, u0, tspan, p = NullParameters (); kwargs... )
131- SDEProblem (SDEFunction (f, g), g, u0, tspan, p; kwargs... )
131+ SDEProblem (SDEFunction (f, g), u0, tspan, p; kwargs... )
132132end
133133
134134"""
@@ -141,18 +141,19 @@ $(TYPEDEF)
141141"""
142142struct SplitSDEProblem{iip} <: AbstractSplitSDEProblem end
143143# u' = Au + f
144+ #=
144145function SplitSDEProblem(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...)
145146 SplitSDEProblem(SplitSDEFunction(f1, f2, g), g, u0, tspan, p; kwargs...)
146147end
147-
148- function SplitSDEProblem (f :: SplitSDEFunction , g, u0, tspan, p = NullParameters (); kwargs... )
149- SplitSDEProblem {isinplace(f)} (f, g , u0, tspan, p; kwargs... )
148+ =#
149+ function SplitSDEProblem (f1, f2 , g, u0, tspan, p = NullParameters (); kwargs... )
150+ SplitSDEProblem ( SplitSDEFunction (f1, f2, g) , u0, tspan, p; kwargs... )
150151end
151152
152- function SplitSDEProblem {iip} (f1, f2, g, u0, tspan, p = NullParameters ();
153- kwargs... ) where {iip}
154- SplitSDEProblem (SplitSDEFunction (f1, f2, g), g, u0, tspan, p; kwargs... )
153+ function SplitSDEProblem (f:: SplitSDEFunction , u0, tspan, p = NullParameters (); kwargs... )
154+ SplitSDEProblem {isinplace(f)} (f, f. g, u0, tspan, p; kwargs... )
155155end
156+
156157function SplitSDEProblem {iip} (f:: SplitSDEFunction , g, u0, tspan, p = NullParameters ();
157158 func_cache = nothing , kwargs... ) where {iip}
158159 if f. cache === nothing && iip
@@ -162,7 +163,7 @@ function SplitSDEProblem{iip}(f::SplitSDEFunction, g, u0, tspan, p = NullParamet
162163 else
163164 _f = f
164165 end
165- SDEProblem (_f, g, u0, tspan, p; kwargs... )
166+ SDEProblem (_f, u0, tspan, p; kwargs... )
166167end
167168
168169"""
@@ -176,18 +177,14 @@ $(TYPEDEF)
176177struct DynamicalSDEProblem{iip} <: AbstractDynamicalSDEProblem end
177178
178179function DynamicalSDEProblem (f1, f2, g, v0, u0, tspan, p = NullParameters (); kwargs... )
179- DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), g, v0, u0, tspan, p; kwargs... )
180+ DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), v0, u0, tspan, p; kwargs... )
180181end
181182
182- function DynamicalSDEProblem (f:: DynamicalSDEFunction , g, v0, u0, tspan,
183+ function DynamicalSDEProblem (f:: DynamicalSDEFunction , v0, u0, tspan,
183184 p = NullParameters (); kwargs... )
184- DynamicalSDEProblem {isinplace(f)} (f, g, v0, u0, tspan, p; kwargs... )
185+ DynamicalSDEProblem {isinplace(f)} (f, f . g, v0, u0, tspan, p; kwargs... )
185186end
186187
187- function DynamicalSDEProblem {iip} (f1, f2, g, v0, u0, tspan, p = NullParameters ();
188- kwargs... ) where {iip}
189- DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), g, v0, u0, tspan, p; kwargs... )
190- end
191188function DynamicalSDEProblem {iip} (f:: DynamicalSDEFunction , g, v0, u0, tspan,
192189 p = NullParameters ();
193190 func_cache = nothing , kwargs... ) where {iip}
@@ -198,5 +195,5 @@ function DynamicalSDEProblem{iip}(f::DynamicalSDEFunction, g, v0, u0, tspan,
198195 else
199196 _f = f
200197 end
201- SDEProblem (_f, g, ArrayPartition (v0, u0), tspan, p; kwargs... )
198+ SDEProblem (_f, ArrayPartition (v0, u0), tspan, p; kwargs... )
202199end
0 commit comments