From 4be999657aa567f61fe8d758961cbe6722895d40 Mon Sep 17 00:00:00 2001 From: guido 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 ++++++++++--------- .../bits/block_matrix_array_01.output | 5 +++ 2 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 tests/results/i686-pc-linux-gnu+gcc3.2/bits/block_matrix_array_01.output 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; } diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/bits/block_matrix_array_01.output b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/block_matrix_array_01.output new file mode 100644 index 0000000000..3a8202dfb2 --- /dev/null +++ b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/block_matrix_array_01.output @@ -0,0 +1,5 @@ + +DEAL::\begin{array}{cc} +DEAL:: M0+2xM1^T & -3xM2-3xM2^T\\ +DEAL:: & M3^T\\ +DEAL::\end{array} -- 2.39.5