Skip to content

Commit

Permalink
Don't copy in linear solve
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jan 31, 2024
1 parent 1b4d289 commit d821651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "NonlinearSolve"
uuid = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
authors = ["SciML"]
version = "3.5.1"
version = "3.5.2"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
4 changes: 1 addition & 3 deletions src/internal/linear_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ function LinearSolverCache(alg, linsolve, A, b, u; kwargs...)
(A isa Diagonal) || (linsolve isa typeof(\))
return LinearSolverCache(nothing, nothing, A, b, nothing, 0, 0)
end
@bb b_ = copy(b)
@bb u_ = copy(u)
linprob = LinearProblem(A, b_; u0 = u_, kwargs...)
linprob = LinearProblem(A, b; u0 = u, kwargs...)

weight = __init_ones(u)
if __hasfield(alg, Val(:precs))
Expand Down

0 comments on commit d821651

Please sign in to comment.