From d8f8c2c31499ff7f326c605ee66aa42f448673ee Mon Sep 17 00:00:00 2001 From: Raye Kimmerer Date: Wed, 28 Feb 2024 19:57:45 -0500 Subject: [PATCH] fix accidental dev leak --- src/factorization.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/factorization.jl b/src/factorization.jl index 09eed7407..98c431d9e 100644 --- a/src/factorization.jl +++ b/src/factorization.jl @@ -857,12 +857,12 @@ function SciMLBase.solve!(cache::LinearCache, alg::KLUFactorization; kwargs...) cacheval = @get_cacheval(cache, :KLUFactorization) if alg.reuse_symbolic if alg.check_pattern && !(SparseArrays.decrement(SparseArrays.getcolptr(A)) == - cacheval.colptr && - SparseArrays.decrement(SparseArrays.getrowval(A)) == - cacheval.rowval) + cacheval.colptr && + SparseArrays.decrement(SparseArrays.getrowval(A)) == + cacheval.rowval) fact = KLU.klu( SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A), - nonzeros(A)), + nonzeros(A)), check = false) else fact = KLU.klu!(cacheval, nonzeros(A), check = false) @@ -877,7 +877,7 @@ function SciMLBase.solve!(cache::LinearCache, alg::KLUFactorization; kwargs...) cache.isfresh = false end F = @get_cacheval(cache, :KLUFactorization) - if F.status == KLU.KLU_OK + if F.common.status == KLU.KLU_OK y = ldiv!(cache.u, F, cache.b) SciMLBase.build_linear_solution(alg, y, nothing, cache) else