Skip to content

Commit 632d891

Browse files
Merge pull request #852 from SciML/precomp
Fix precompilation
2 parents 39b60af + 0efc7bb commit 632d891

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinearSolve"
22
uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
33
authors = ["SciML"]
4-
version = "3.50.1"
4+
version = "3.50.2"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

ext/LinearSolveSparseArraysExt.jl

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -312,30 +312,6 @@ function LinearSolve.init_cacheval(
312312
end
313313
end
314314

315-
function LinearSolve.init_cacheval(
316-
alg::GenericFactorization, A::AbstractSciMLOperator, b, u, Pl, Pr,
317-
maxiters::Int, abstol, reltol,
318-
verbose::Union{LinearVerbosity, Bool}, assumptions::OperatorAssumptions)
319-
if has_concretization(A)
320-
return LinearSolve.init_cacheval(alg, convert(AbstractMatrix, A), b, u, Pl, Pr,
321-
maxiters, abstol, reltol, verbose, assumptions)
322-
else
323-
nothing
324-
end
325-
end
326-
327-
function LinearSolve.init_cacheval(
328-
alg::GenericLUFactorization, A::AbstractSciMLOperator, b, u, Pl, Pr,
329-
maxiters::Int, abstol, reltol,
330-
verbose::Union{LinearVerbosity, Bool}, assumptions::OperatorAssumptions)
331-
if has_concretization(A)
332-
return LinearSolve.init_cacheval(alg, convert(AbstractMatrix, A), b, u, Pl, Pr,
333-
maxiters, abstol, reltol, verbose, assumptions)
334-
else
335-
nothing
336-
end
337-
end
338-
339315
function LinearSolve.init_cacheval(
340316
alg::QRFactorization, A::AbstractSciMLOperator, b, u, Pl, Pr,
341317
maxiters::Int, abstol, reltol,
@@ -485,6 +461,10 @@ function LinearSolve._ldiv!(::SVector,
485461
end
486462
end # @static if Base.USE_GPL_LIBS
487463

464+
function LinearSolve.pattern_changed(fact::Nothing, A::SparseArrays.SparseMatrixCSC)
465+
true
466+
end
467+
488468
function LinearSolve.pattern_changed(fact, A::SparseArrays.SparseMatrixCSC)
489469
!(SparseArrays.decrement(SparseArrays.getcolptr(A)) ==
490470
fact.colptr && SparseArrays.decrement(SparseArrays.getrowval(A)) ==

0 commit comments

Comments
 (0)