From 328fa267c420938b2bcc8dfb86f5bfa21bf2a9f4 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Sun, 19 Dec 2021 18:51:36 -0500 Subject: [PATCH] hotfix: manually call 2-argument ldiv! to avoid resize! problems See https://github.com/JuliaLang/julia/issues/33143 for more details --- Project.toml | 2 +- src/factorization.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index bcd00a646..fa7155246 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LinearSolve" uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" authors = ["SciML"] -version = "0.3.1" +version = "0.3.2" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/factorization.jl b/src/factorization.jl index 75064a77a..9414b8f26 100644 --- a/src/factorization.jl +++ b/src/factorization.jl @@ -4,7 +4,8 @@ function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs. cache = set_cacheval(cache, fact) end - y = ldiv!(cache.u, cache.cacheval, cache.b) + copyto!(cache.u,cache.b) + y = ldiv!(cache.cacheval, cache.u) SciMLBase.build_linear_solution(alg,y,nothing,cache) end