Skip to content

Commit b2ac278

Browse files
haampieandreasnoack
authored andcommitted
Clean up test folder a bit (#151)
* Remove unused include * It's a Laplace matrix for a Poisson problem * Move advection diffusion to the benchmarks
1 parent df71293 commit b2ac278

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed
File renamed without changes.

benchmark/benchmark-linear-systems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Base.A_ldiv_B!, Base.\
55
using BenchmarkTools
66
using IterativeSolvers
77

8-
include("../test/advection_diffusion.jl")
8+
include("advection_diffusion.jl")
99

1010
# A DiagonalMatrix that doesn't check whether it is singular in the \ op.
1111
immutable DiagonalPreconditioner{T}

test/bicgstabl.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using IterativeSolvers
22
using Base.Test
33

4-
include("advection_diffusion.jl")
5-
64
@testset ("BiCGStab(l)") begin
75

86
srand(1234321)

test/cg.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ using IterativeSolvers
22
using LinearMaps
33
using Base.Test
44

5-
srand(1234321)
6-
include("poisson_matrix.jl")
5+
include("laplace_matrix.jl")
76

87
@testset "Conjugate Gradients" begin
98

9+
srand(1234321)
10+
1011
@testset "Small full system" begin
1112
n = 10
1213

@@ -38,7 +39,7 @@ include("poisson_matrix.jl")
3839
end
3940

4041
@testset "Sparse Laplacian" begin
41-
A = poisson_matrix(Float64, 10, 3)
42+
A = laplace_matrix(Float64, 10, 3)
4243
L = tril(A)
4344
D = diag(A)
4445
U = triu(A)

test/poisson_matrix.jl renamed to test/laplace_matrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function poisson_matrix{T}(::Type{T}, n, dims)
1+
function laplace_matrix{T}(::Type{T}, n, dims)
22
D = second_order_central_diff(T, n);
33
A = copy(D);
44

0 commit comments

Comments
 (0)