Skip to content

Commit f8b9e9a

Browse files
committed
Tests reflect that symmetric is now default
1 parent ebf1d33 commit f8b9e9a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/runtests.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,23 @@ A = poisson(1000)
104104
A = float.(A)
105105
ml = ruge_stuben(A)
106106
x = solve(ml, A * ones(1000))
107-
@test sum(abs2, x - ones(1000)) < 1e-10
107+
@test sum(abs2, x - ones(1000)) < 1e-8
108108

109109
A = load("randlap.jld")["G"]
110-
ml = ruge_stuben(A)
110+
smoother = GaussSeidel(ForwardSweep())
111+
ml = ruge_stuben(A, presmoother = smoother,
112+
postsmoother = smoother)
111113
x = solve(ml, A * ones(100))
112-
@test sum(abs2, x - zeros(100)) < 1e-10
114+
@test sum(abs2, x - zeros(100)) < 1e-8
113115

114116
end
115117

116118
@testset "Preconditioning" begin
117119
A = load("thing.jld")["G"]
118120
n = size(A, 1)
119-
ml = ruge_stuben(A)
121+
smoother = GaussSeidel(ForwardSweep())
122+
ml = ruge_stuben(A, presmoother = smoother,
123+
postsmoother = smoother)
120124
p = aspreconditioner(ml)
121125
b = zeros(n)
122126
b[1] = 1

0 commit comments

Comments
 (0)