Skip to content

Commit

Permalink
Add new dispatch for SDEProblem
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <[email protected]>
  • Loading branch information
ErikQQY committed Aug 17, 2023
1 parent c6fa298 commit 681b9e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/problems/sde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,17 @@ end
=#

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

function SDEProblem(f, g, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem(SDEFunction(f, g), g, u0, tspan, p; kwargs...)
end

function SDEProblem(f::AbstractSDEFunction, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem(f, f.g, u0, tspan, p; kwargs...)

Check warning on line 135 in src/problems/sde_problems.jl

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L134-L135

Added lines #L134 - L135 were not covered by tests
end

"""
$(TYPEDEF)
"""
Expand Down

0 comments on commit 681b9e1

Please sign in to comment.