From: Wolfgang Bangerth Date: Thu, 3 Mar 2005 22:30:29 +0000 (+0000) Subject: Add test. X-Git-Tag: v8.0.0~14531 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e5d8955b2cd204cf78756f4b89dc37475ac6b31;p=dealii.git Add test. git-svn-id: https://svn.dealii.org/trunk@9990 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/block_matrix_array_02.cc b/tests/bits/block_matrix_array_02.cc new file mode 100644 index 0000000000..a12dea7d99 --- /dev/null +++ b/tests/bits/block_matrix_array_02.cc @@ -0,0 +1,47 @@ +//---------------------------- block_matrix_array_02.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2005 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- block_matrix_array_02.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 test doesn't do anything particularly useful, it just makes sure that +// we can compile this kind of code + +#include +#include +#include +#include +#include +#include + + +int main () +{ + std::ofstream logfile("block_matrix_array_02.output"); + deallog.attach(logfile); + deallog.depth_console(0); + + BlockMatrixArray >::value_type i = 1.0; + deallog << i << std::endl; + + // the following did not compile + // right away + PreconditionBlockSSOR > > p; + + return 0; +}