Skip to content

Commit

Permalink
simplify umfpack check for julia version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlebring committed Jun 28, 2023
1 parent 04630f1 commit 3655b20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LinSolvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ See [`LinSolver`](@ref) and [`FactorizeLinSolverCreator`](@ref) for examples.
A=compute_Mder(nep,λ)
Afact=factorize(A)
# Only activate umfpack_refiments on julia >= 1.9 cf #265
if ((Afact isa SparseArrays.UMFPACK.UmfpackLU) &
isdefined(Afact,:control))
if (isdefined(Afact,:control))
Afact.control[8]=umfpack_refinements # Set the maximum number of refiments
end
return FactorizeLinSolver(Afact, umfpack_refinements)
Expand Down

0 comments on commit 3655b20

Please sign in to comment.