Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove a double union splitting situation #1010

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,13 @@
sensealg = prob.kwargs[:sensealg]
end

u0 = u0 !== nothing ? u0 : prob.u0
p = p !== nothing ? p : prob.p
_u0 = u0 !== nothing ? u0 : prob.u0
_p = p !== nothing ? p : prob.p

Check warning on line 982 in src/solve.jl

View check run for this annotation

Codecov / codecov/patch

src/solve.jl#L981-L982

Added lines #L981 - L982 were not covered by tests

if wrap isa Val{true}
wrap_sol(solve_up(prob, sensealg, u0, p, args...; kwargs...))
wrap_sol(solve_up(prob, sensealg, _u0, _p, args...; kwargs...))

Check warning on line 985 in src/solve.jl

View check run for this annotation

Codecov / codecov/patch

src/solve.jl#L985

Added line #L985 was not covered by tests
else
solve_up(prob, sensealg, u0, p, args...; kwargs...)
solve_up(prob, sensealg, _u0, _p, args...; kwargs...)

Check warning on line 987 in src/solve.jl

View check run for this annotation

Codecov / codecov/patch

src/solve.jl#L987

Added line #L987 was not covered by tests
end
end

Expand Down
Loading