Skip to content

Commit bf5ea7f

Browse files
committed
reverting
2 parents 5b6dff3 + c7dea0a commit bf5ea7f

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

src/LinearSolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using DocStringExtensions
1717

1818
# wrap
1919
import Krylov
20-
import KrylovKit # TODO
20+
import KrylovKit
2121
import IterativeSolvers
2222

2323
using Reexport

src/default.jl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,11 @@ end
5353

5454
function SciMLBase.solve(cache::LinearCache, alg::Nothing,
5555
args...; kwargs...)
56-
@unpack A, b, u = cache
56+
@unpack A = cache
5757
if A isa DiffEqArrayOperator
5858
A = A.A
5959
end
6060

61-
if applicable(ldiv!, u, A, b)
62-
alg = LdivBang3Args()
63-
SciMLBase.solve(cache, alg, args...; kwargs...)
64-
elseif applicable(ldiv!, A, u)
65-
alg = LdivBang2Args()
66-
SciMLBase.solve(cache, alg, args...; kwargs...)
67-
end
68-
6961
# Special case on Arrays: avoid BLAS for RecursiveFactorization.jl when
7062
# it makes sense according to the benchmarks, which is dependent on
7163
# whether MKL or OpenBLAS is being used
@@ -125,14 +117,6 @@ function init_cacheval(alg::Nothing, A, b, u, Pl, Pr, maxiters, abstol, reltol,
125117
A = A.A
126118
end
127119

128-
if applicable(ldiv!, A, u)
129-
alg = FunctionCall(ldiv!, (:A, :u))
130-
init_cacheval(alg, A, b, u, Pl, Pr, maxiters, abstol, reltol, verbose)
131-
elseif applicable(ldiv!, u, A, b)
132-
alg = FunctionCall(ldiv!, (:u, :A, :b))
133-
init_cacheval(alg, A, b, u, Pl, Pr, maxiters, abstol, reltol, verbose)
134-
end
135-
136120
# Special case on Arrays: avoid BLAS for RecursiveFactorization.jl when
137121
# it makes sense according to the benchmarks, which is dependent on
138122
# whether MKL or OpenBLAS is being used

test/basictests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ end
4848
y = solve(_prob)
4949
@test A1 * y b1
5050

51-
#=
5251
_prob = LinearProblem(SymTridiagonal(A1), b1; u0=x1)
5352
y = solve(_prob)
5453
@test A1 * y b1
@@ -69,10 +68,8 @@ end
6968
_prob = LinearProblem(sparse(A1), b1; u0=x1)
7069
y = solve(_prob)
7170
@test A1 * y b1
72-
=#
7371
end
7472

75-
#=
7673
@testset "UMFPACK Factorization" begin
7774
A1 = A/1; b1 = rand(n); x1 = zero(b)
7875
A2 = A/2; b2 = rand(n); x2 = zero(b)
@@ -289,6 +286,5 @@ end
289286
@test sol13.u sol23.u
290287
@test sol13.u sol33.u
291288
end
292-
=#
293289

294290
end # testset

0 commit comments

Comments
 (0)