Skip to content

Commit

Permalink
Fix iip in SplitSDEProblem and DynamicalSDEProblem
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <[email protected]>
  • Loading branch information
ErikQQY committed Sep 28, 2023
1 parent 5b127c5 commit b43091b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.0.4"
version = "2.0.5"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
16 changes: 8 additions & 8 deletions src/problems/sde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ function SplitSDEProblem(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...)
SplitSDEProblem(SplitSDEFunction(f1, f2, g), g, u0, tspan, p; kwargs...)
end
=#
function SplitSDEProblem(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...)
SplitSDEProblem(SplitSDEFunction(f1, f2, g), u0, tspan, p; kwargs...)
function SplitSDEProblem{iip}(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...) where {iip}
SplitSDEProblem{iip}(SplitSDEFunction(f1, f2, g), u0, tspan, p; kwargs...)

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L144-L145

Added lines #L144 - L145 were not covered by tests
end

function SplitSDEProblem(f::SplitSDEFunction, u0, tspan, p = NullParameters(); kwargs...)
SplitSDEProblem{isinplace(f)}(f, f.g, u0, tspan, p; kwargs...)
SplitSDEProblem{isinplace(f)}(f, u0, tspan, p; kwargs...)

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L149

Added line #L149 was not covered by tests
end

function SplitSDEProblem{iip}(f::SplitSDEFunction, g, u0, tspan, p = NullParameters();
function SplitSDEProblem{iip}(f::SplitSDEFunction, u0, tspan, p = NullParameters();

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L152

Added line #L152 was not covered by tests
func_cache = nothing, kwargs...) where {iip}
if f.cache === nothing && iip
cache = similar(u0)
Expand All @@ -171,16 +171,16 @@ $(TYPEDEF)
"""
struct DynamicalSDEProblem{iip} <: AbstractDynamicalSDEProblem end

function DynamicalSDEProblem(f1, f2, g, v0, u0, tspan, p = NullParameters(); kwargs...)
DynamicalSDEProblem(DynamicalSDEFunction(f1, f2, g), v0, u0, tspan, p; kwargs...)
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...)

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L174-L175

Added lines #L174 - L175 were not covered by tests
end

function DynamicalSDEProblem(f::DynamicalSDEFunction, v0, u0, tspan,
p = NullParameters(); kwargs...)
DynamicalSDEProblem{isinplace(f)}(f, f.g, v0, u0, tspan, p; kwargs...)
DynamicalSDEProblem{isinplace(f)}(f, v0, u0, tspan, p; kwargs...)

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L180

Added line #L180 was not covered by tests
end

function DynamicalSDEProblem{iip}(f::DynamicalSDEFunction, g, v0, u0, tspan,
function DynamicalSDEProblem{iip}(f::DynamicalSDEFunction, v0, u0, tspan,

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

View check run for this annotation

Codecov / codecov/patch

src/problems/sde_problems.jl#L183

Added line #L183 was not covered by tests
p = NullParameters();
func_cache = nothing, kwargs...) where {iip}
if f.cache === nothing && iip
Expand Down

0 comments on commit b43091b

Please sign in to comment.