Skip to content

Commit

Permalink
Merge pull request #76 from SciML/resize
Browse files Browse the repository at this point in the history
hotfix: manually call 2-argument ldiv! to avoid resize! problems
  • Loading branch information
ChrisRackauckas authored Dec 19, 2021
2 parents 0e4de70 + 328fa26 commit 0b47fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0b47fe1

Please sign in to comment.