diff --git a/Project.toml b/Project.toml index 81ac8a571..106c78828 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/internal/linear_solve.jl b/src/internal/linear_solve.jl index 2487d2e37..60ef18901 100644 --- a/src/internal/linear_solve.jl +++ b/src/internal/linear_solve.jl @@ -54,9 +54,8 @@ 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))