Skip to content

Commit 3a38e26

Browse files
committed
fix new sparse tests
1 parent 46ae4dd commit 3a38e26

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/basictests.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ end
7979
end
8080

8181
@testset "UMFPACK Factorization" begin
82-
A1 = A / 1
82+
A1 = sparse(A / 1)
8383
b1 = rand(n)
8484
x1 = zero(b)
85-
A2 = A / 2
85+
A2 = sparse(A / 2)
8686
b2 = rand(n)
8787
x2 = zero(b)
8888

89-
prob1 = LinearProblem(sparse(A1), b1; u0 = x1)
90-
prob2 = LinearProblem(sparse(A2), b2; u0 = x2)
89+
prob1 = LinearProblem(A1, b1; u0 = x1)
90+
prob2 = LinearProblem(A2, b2; u0 = x2)
9191
test_interface(UMFPACKFactorization(), prob1, prob2)
9292
test_interface(UMFPACKFactorization(reuse_symbolic = false), prob1, prob2)
9393

@@ -102,15 +102,15 @@ end
102102
end
103103

104104
@testset "KLU Factorization" begin
105-
A1 = A / 1
105+
A1 = sparse(A / 1)
106106
b1 = rand(n)
107107
x1 = zero(b)
108-
A2 = A / 2
108+
A2 = sparse(A / 2)
109109
b2 = rand(n)
110110
x2 = zero(b)
111111

112-
prob1 = LinearProblem(sparse(A1), b1; u0 = x1)
113-
prob2 = LinearProblem(sparse(A2), b2; u0 = x2)
112+
prob1 = LinearProblem(A1, b1; u0 = x1)
113+
prob2 = LinearProblem(A2, b2; u0 = x2)
114114
test_interface(KLUFactorization(), prob1, prob2)
115115
test_interface(KLUFactorization(reuse_symbolic = false), prob1, prob2)
116116

0 commit comments

Comments
 (0)