Skip to content

Commit

Permalink
fix accidental dev leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rayegun committed Feb 29, 2024
1 parent 1eaf772 commit d8f8c2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -877,7 +877,7 @@ function SciMLBase.solve!(cache::LinearCache, alg::KLUFactorization; kwargs...)
cache.isfresh = false
end
F = @get_cacheval(cache, :KLUFactorization)

Check warning on line 879 in src/factorization.jl

View check run for this annotation

Codecov / codecov/patch

src/factorization.jl#L879

Added line #L879 was not covered by tests
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
Expand Down

0 comments on commit d8f8c2c

Please sign in to comment.