From b62a54fea7df384c4a6b84088856ff133745aeb0 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 3 Mar 2005 21:53:28 +0000 Subject: [PATCH] new test git-svn-id: https://svn.dealii.org/trunk@9988 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/block_matrix_array_01.cc | 31 ++++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/tests/bits/block_matrix_array_01.cc b/tests/bits/block_matrix_array_01.cc index ea2a383d99..2ceb9397d9 100644 --- a/tests/bits/block_matrix_array_01.cc +++ b/tests/bits/block_matrix_array_01.cc @@ -12,17 +12,12 @@ //---------------------------- block_matrix_array_01.cc --------------------------- -// the class BlockMatrixArray had no local type value_type that is -// needed in some places. in particular, this is needed for -// PreconditionBlockSSOR -// -// the test also didn't link before, due to some functions that were -// either missing or in the wrong place +// This tests the construction of a BlockMatrixArray and outputs the +// entered blocks using print_latex. #include #include -#include -#include +#include #include #include @@ -31,14 +26,22 @@ int main () { std::ofstream logfile("block_matrix_array_01.output"); deallog.attach(logfile); - deallog.depth_console(0); + deallog.depth_console(10); - BlockMatrixArray >::value_type i = 1.0; - deallog << i << std::endl; + FullMatrix A1(4,4); + FullMatrix A2(4,4); + FullMatrix B(4,3); + FullMatrix C(3,3); + + BlockMatrixArray > block(2,2); + + block.enter(A1,0,0); + block.enter(A2,0,0,2,true); + block.enter(B,0,1,-3.); + block.enter(B,0,1,-3.,true); + block.enter(C,1,1,1.,true); - // the following did not compile - // right away - PreconditionBlockSSOR > > p; + block.print_latex(deallog); return 0; } -- 2.39.5