Skip to content

Commit 92736ed

Browse files
committed
Address comments.
1 parent 2653055 commit 92736ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ LinearSolveAMDGPUExt = "AMDGPU"
5656
LinearSolveBLISExt = ["blis_jll", "LAPACK_jll"]
5757
LinearSolveBandedMatricesExt = "BandedMatrices"
5858
LinearSolveBlockDiagonalsExt = "BlockDiagonals"
59-
LinearSolveCliqueTreesExt = "CliqueTrees"
59+
LinearSolveCliqueTreesExt = ["CliqueTrees", "SparseArrays"]
6060
LinearSolveCUDAExt = "CUDA"
6161
LinearSolveCUDSSExt = "CUDSS"
6262
LinearSolveCUSOLVERRFExt = ["CUSOLVERRF", "SparseArrays"]

ext/LinearSolveCliqueTreesExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module LinearSolveCliqueTreesExt
33
using CliqueTrees: EliminationAlgorithm, SupernodeType, DEFAULT_ELIMINATION_ALGORITHM,
44
DEFAULT_SUPERNODE_TYPE, symbolic, cholinit, lininit, cholesky!, linsolve!
55
using LinearSolve
6+
using SparseArrays
67

78
function LinearSolve.CliqueTreesFactorization(;
89
alg::A=DEFAULT_ELIMINATION_ALGORITHM,
@@ -45,7 +46,7 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::CliqueTreesFactor
4546
end
4647

4748
LinearSolve.PrecompileTools.@compile_workload begin
48-
A = [
49+
A = sparse([
4950
3 1 0 0 0 0 0 0
5051
1 3 1 0 0 2 0 0
5152
0 1 3 1 0 1 2 1
@@ -54,11 +55,10 @@ LinearSolve.PrecompileTools.@compile_workload begin
5455
0 2 1 0 1 3 0 0
5556
0 0 2 0 1 0 3 1
5657
0 0 1 0 0 0 1 3
57-
];
58+
])
5859

5960
b = rand(8)
6061
prob = LinearProblem(A, b)
61-
sol = solve(prob) # in case cliquetrees is used as default
6262
sol = solve(prob, CliqueTreesFactorization())
6363
end
6464

0 commit comments

Comments
 (0)