Skip to content

Commit

Permalink
BVP only
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <[email protected]>
  • Loading branch information
ErikQQY committed Sep 4, 2023
1 parent 98afac4 commit 30fb3c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/problems/sde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ struct SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND} <:
warn_paramtype(p)
new{typeof(u0), typeof(_tspan),
isinplace(f), typeof(p),
typeof(noise), typeof(f.f), typeof(g),
typeof(noise), typeof(f), typeof(f.g),
typeof(kwargs),
typeof(noise_rate_prototype)}(f.f, g, u0, _tspan, p,
typeof(noise_rate_prototype)}(f, f.g, u0, _tspan, p,
noise, kwargs,
noise_rate_prototype, seed)
end
Expand All @@ -123,12 +123,12 @@ function SDEProblem(f::AbstractSDEFunction,u0,tspan,p=NullParameters();kwargs...
end
=#

function SDEProblem(f, g, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem(SDEFunction(f, g), u0, tspan, p; kwargs...)
function SDEProblem(f::AbstractSDEFunction, g, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem{isinplace(f)}(f, g, u0, tspan, p; kwargs...)
end

function SDEProblem(f::AbstractSDEFunction, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem{isinplace(f)}(f.f, f.g, u0, tspan, p; kwargs...)
function SDEProblem(f, g, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem(SDEFunction(f, g), g, u0, tspan, p; kwargs...)
end

"""
Expand Down

0 comments on commit 30fb3c2

Please sign in to comment.