|
13 | 13 | GaussSeidel(iter = 1) = GaussSeidel(SymmetricSweep(), iter)
|
14 | 14 | GaussSeidel(f::ForwardSweep) = GaussSeidel(f, 1)
|
15 | 15 | GaussSeidel(b::BackwardSweep) = GaussSeidel(b, 1)
|
| 16 | +GaussSeidel(s::SymmetricSweep) = GaussSeidel(s, 1) |
16 | 17 |
|
17 | 18 | presmoother!(s, A, x, b) = smoother!(s, s.sweep, A, x, b)
|
18 | 19 | postsmoother!(s, A, x, b) = smoother!(s, s.sweep, A, x, b)
|
|
26 | 27 |
|
27 | 28 | function smoother!(s::GaussSeidel, ::SymmetricSweep, A, x, b)
|
28 | 29 | for i in 1:s.iter
|
29 |
| - smoother!(s, ForwardSweep(), A, x, b) |
30 |
| - smoother!(s, BackwardSweep(), A, x, b) |
| 30 | + gs!(A, b, x, 1, 1, size(A, 1)) |
| 31 | + gs!(A, b, x, size(A,1), -1, 1) |
31 | 32 | end
|
32 | 33 | end
|
33 | 34 |
|
|
0 commit comments