Skip to content

Commit 9da256d

Browse files
fix super type
1 parent c8af416 commit 9da256d

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
111111
Tc = typeof(cacheval)
112112

113113
A = alias_A ? A : deepcopy(A)
114-
b = if b isa SparseArray && !(A isa Diagonal)
114+
b = if b isa SparseArrays.AbstractSparseArray && !(A isa Diagonal)
115115
Array(b) # the solution to a linear solve will always be dense!
116116
elseif alias_b
117117
b

src/default.jl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353
end
5454
else
5555
function defaultalg(A::SparseMatrixCSC, b, ::OperatorAssumptions{true})
56-
KrylovJL_GMRES()
56+
SparspakFactorization()
5757
end
5858
end
5959

@@ -152,20 +152,6 @@ function defaultalg(A, b, ::OperatorAssumptions{true})
152152
alg
153153
end
154154

155-
function defaultalg(A::SparseMatrixCSC, b, ::OperatorAssumptions{true})
156-
# If GPL libraries are loaded, then use SuiteSparse. Otherwise Sparspak
157-
if INCLUDE_SPARSE
158-
if length(b) <= 10000
159-
alg = KLUFactorization()
160-
else
161-
alg = UMFPACKFactorization()
162-
end
163-
else
164-
alg = SparspakFactorization()
165-
end
166-
alg
167-
end
168-
169155
function defaultalg(A, b, ::OperatorAssumptions{false})
170156
QRFactorization()
171157
end

0 commit comments

Comments
 (0)