Skip to content

Commit d153e25

Browse files
committed
show(devnull, obj)
1 parent a3e68df commit d153e25

8 files changed

Lines changed: 17 additions & 20 deletions

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using ExampleJuggler
66
using SparseArrays
77
using Aqua
88

9-
109
@testset "Aqua.jl" begin
1110
Aqua.test_all(
1211
ExtendableFEMBase;

test/test_febasis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ end
2323

2424
function test_vertex_values(EG, FEType, order)
2525
qf = VertexRule(EG, order; T = Rational{Int})
26-
@show qf
26+
show(devnull, qf)
2727
basis = get_basis(ON_CELLS, FEType, EG)
2828
ndofs = get_ndofs(ON_CELLS, FEType, EG)
2929
basis_vals = zeros(Rational{Int}, ndofs, 1)

test/test_fematrix_and_vector.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ function run_fematrix_tests()
77
println("===========================")
88
xgrid = simplexgrid(0:0.1:1, 0:0.1:1)
99
FES1 = FESpace{H1Pk{1, 1, 1}}(xgrid)
10-
@show FES1
10+
show(devnull, FES1)
1111
FES2 = FESpace{H1Pk{1, 1, 2}}(xgrid)
12-
@show FES2
12+
show(devnull, FES2)
1313
A = FEMatrix(FES1, FES2)
1414
@test size(A.entries) == (FES1.ndofs, FES2.ndofs)
1515
@test size(A[1, 1]) == (FES1.ndofs, FES2.ndofs)
16-
@show A
16+
show(devnull, A)
1717

1818
B = FEMatrix([FES1, FES2])
1919
@test length(B) == 4
2020
@test size(B.entries) == (FES1.ndofs + FES2.ndofs, FES1.ndofs + FES2.ndofs)
2121
@test size(B[1, 2]) == (FES1.ndofs, FES2.ndofs)
22-
@show B
22+
show(devnull, B)
2323

2424
C = FEMatrix([FES2, FES2], [FES1, FES1])
2525
@test length(C) == 4
2626
@test size(C.entries) == (2 * FES2.ndofs, 2 * FES1.ndofs)
2727
@test size(C[1, 2]) == (FES2.ndofs, FES1.ndofs)
2828
C.entries.cscmatrix = sprand(2 * FES2.ndofs, 2 * FES1.ndofs, 0.5)
29-
@show C
29+
show(devnull, C)
3030

3131
b = FEVector([FES1, FES2])
3232
b.entries .= rand(FES1.ndofs + FES2.ndofs)

test/test_interpolators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function run_interpolator_tests()
7373
QP = QPInfos(xgrid)
7474
qf = VertexRule(EG, order)
7575
FEB = FEEvaluator(FES, Identity, qf)
76-
@show FEB
76+
show(devnull, FEB)
7777
for cell::Int in cells
7878
update_trafo!(L2G, cell)
7979
update_basis!(FEB, cell)
@@ -106,7 +106,7 @@ function run_interpolator_tests()
106106
# interpolate
107107
Solution = FEVector(FES)
108108
interpolate!(Solution[1], u; bonus_quadorder = order)
109-
@show Solution
109+
show(devnull, Solution)
110110

111111
# compute error
112112
error = compute_error(Solution[1], u, order)

test/test_operators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function test_derivatives2D()
3232
## define P2-Courant finite element space
3333
FEType = H1P2{2, 2}
3434
FES = FESpace{FEType}(xgrid)
35-
@show FES
35+
show(devnull, FES)
3636

3737
## get midpoint quadrature rule for constants
3838
qf = QuadratureRule{Float64, Triangle2D}(0)
@@ -114,7 +114,7 @@ function test_derivatives3D()
114114
## define P2-Courant finite element space
115115
FEType = H1P2{3, 3}
116116
FES = FESpace{FEType}(xgrid)
117-
@show FES
117+
show(devnull, FES)
118118

119119
## get midpoint quadrature rule for constants
120120
qf = QuadratureRule{Float64, Tetrahedron3D}(0)

test/test_pointevaluator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function test_pointevaluation2D()
1717
Iu = FEVector(FES)
1818
interpolate!(Iu[1], (result, qpinfo) -> (result[1] = qpinfo.x[1] + qpinfo.x[2]))
1919
PE = PointEvaluator([(1, Identity)])
20-
@show PE
20+
show(devnull, PE)
2121
initialize!(PE, Iu)
2222
CF = CellFinder(xgrid)
2323
eval = zeros(Float64, 1)
@@ -39,7 +39,7 @@ function test_pointevaluation3D()
3939
Iu = FEVector(FES)
4040
interpolate!(Iu[1], (result, qpinfo) -> (result[1] = qpinfo.x[1] + qpinfo.x[2] + qpinfo.x[3]))
4141
PE = PointEvaluator([(1, Identity)])
42-
@show PE
42+
show(devnull, PE)
4343
initialize!(PE, Iu)
4444
CF = CellFinder(xgrid)
4545
eval = zeros(Float64, 1)

test/test_quadrature.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function run_quadrature_tests()
1717
for order in 1:maxorder1D
1818
integrand, exactvalue = exact_function(Val(1), order)
1919
qf = QuadratureRule{Float64, Edge1D}(order)
20-
@show qf
20+
show(devnull, qf)
2121
quadvalue = integrate(xgrid, ON_CELLS, integrand, length(exactvalue); force_quadrature_rule = qf)
2222
println("EG = Edge1D | order = $order ($(qf.name), $(length(qf.w)) points) | error = $(quadvalue - exactvalue)")
2323
@test isapprox(quadvalue, exactvalue)
@@ -31,7 +31,7 @@ function run_quadrature_tests()
3131
for order in 1:maxorder2D[j]
3232
integrand, exactvalue = exact_function(Val(2), order)
3333
qf = QuadratureRule{Float64, EG}(order)
34-
@show qf
34+
show(devnull, qf)
3535
quadvalue = integrate(xgrid, ON_CELLS, integrand, length(exactvalue); force_quadrature_rule = qf)
3636
println("EG = $EG | order = $order ($(qf.name), $(length(qf.w)) points) | error = $(quadvalue - exactvalue)")
3737
@test isapprox(quadvalue, exactvalue)
@@ -46,7 +46,7 @@ function run_quadrature_tests()
4646
for order in 1:maxorder3D[j]
4747
integrand, exactvalue = exact_function(Val(3), order)
4848
qf = QuadratureRule{Float64, EG}(order)
49-
@show qf
49+
show(devnull, qf)
5050
quadvalue = integrate(xgrid, ON_CELLS, integrand, length(exactvalue); force_quadrature_rule = qf)
5151
println("EG = $EG | order = $order ($(qf.name), $(length(qf.w)) points) | error = $(quadvalue - exactvalue)")
5252
@test isapprox(quadvalue, exactvalue)

test/test_segmentintegrator.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function test_segmentintegrator_nokernel()
1919
## init segment integrator
2020
SI = SegmentIntegrator(Edge1D, [(1, Identity)])
2121
initialize!(SI, uh)
22-
@show SI
22+
show(devnull, SI)
2323

2424
## integrate along line [1/4,1/4] to [3/4,1/4] in first triangle
2525
## exact integral should be [3//32,0]
@@ -66,9 +66,7 @@ function test_segmentintegrator_withkernel()
6666
## init segment integrator
6767
SI = SegmentIntegrator(Edge1D, multiply_r!, [(1, Identity)]; bonus_quadorder = 1)
6868
initialize!(SI, uh)
69-
@show SI
70-
71-
@show xgrid[Coordinates], xgrid[CellNodes]
69+
show(devnull, SI)
7270

7371
L2G = L2GTransformer(Triangle2D, xgrid, ON_CELLS)
7472
update_trafo!(L2G, 1)

0 commit comments

Comments
 (0)