From 1b4d289d1286d90d37dbd6eaf9cae84924bc42a9 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Wed, 17 Jan 2024 23:13:24 -0500 Subject: [PATCH 1/2] Re-trigger DAE Tests From 9e0e0c437bad653e9d7558dc80540545ba3ee6d7 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Wed, 31 Jan 2024 00:40:44 -0500 Subject: [PATCH 2/2] Don't copy in linear solve --- Project.toml | 2 +- src/internal/linear_solve.jl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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))