Skip to content

Commit af6bb7c

Browse files
Merge pull request #157 from SciML/klu_update_vals
update values before klu_factor
2 parents c5168f3 + cd582d9 commit af6bb7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/factorization.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function SciMLBase.solve(cache::LinearCache, alg::KLUFactorization; kwargs...)
143143
# If we have a cacheval already, run umfpack_symbolic to ensure the symbolic factorization exists
144144
# This won't recompute if it does.
145145
KLU.klu_analyze!(cache.cacheval)
146+
copyto!(cache.cacheval.nzval, A.nzval)
146147
if cache.cacheval._numeric === C_NULL # We MUST have a numeric factorization for reuse, unlike UMFPACK.
147148
KLU.klu_factor!(cache.cacheval)
148149
end

0 commit comments

Comments
 (0)