@@ -2,28 +2,31 @@ function run_fematrix_tests()
22
33 @testset " FEMatrixVector" begin
44 println (" \n " )
5- println (" =======================" )
6- println (" Testing FEMatrix&VEctor " )
7- println (" =======================" )
5+ println (" =========================== " )
6+ println (" Testing FEMatrix & FEVector " )
7+ println (" =========================== " )
88 xgrid = simplexgrid (0 : 0.1 : 1 , 0 : 0.1 : 1 )
99 FES1 = FESpace {H1Pk{1, 1, 1}} (xgrid)
10+ show (devnull , FES1)
1011 FES2 = FESpace {H1Pk{1, 1, 2}} (xgrid)
12+ show (devnull , FES2)
1113 A = FEMatrix (FES1, FES2)
1214 @test size (A. entries) == (FES1. ndofs, FES2. ndofs)
1315 @test size (A[1 , 1 ]) == (FES1. ndofs, FES2. ndofs)
16+ show (devnull , A)
1417
1518 B = FEMatrix ([FES1, FES2])
1619 @test length (B) == 4
1720 @test size (B. entries) == (FES1. ndofs + FES2. ndofs, FES1. ndofs + FES2. ndofs)
1821 @test size (B[1 , 2 ]) == (FES1. ndofs, FES2. ndofs)
19-
22+ show ( devnull , B)
2023
2124 C = FEMatrix ([FES2, FES2], [FES1, FES1])
2225 @test length (C) == 4
2326 @test size (C. entries) == (2 * FES2. ndofs, 2 * FES1. ndofs)
2427 @test size (C[1 , 2 ]) == (FES2. ndofs, FES1. ndofs)
2528 C. entries. cscmatrix = sprand (2 * FES2. ndofs, 2 * FES1. ndofs, 0.5 )
26- @ show C
29+ show ( devnull , C)
2730
2831 b = FEVector ([FES1, FES2])
2932 b. entries .= rand (FES1. ndofs + FES2. ndofs)
0 commit comments