]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add test.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Mar 2005 22:30:29 +0000 (22:30 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Mar 2005 22:30:29 +0000 (22:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@9990 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/block_matrix_array_02.cc [new file with mode: 0644]

diff --git a/tests/bits/block_matrix_array_02.cc b/tests/bits/block_matrix_array_02.cc
new file mode 100644 (file)
index 0000000..a12dea7
--- /dev/null
@@ -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 <base/logstream.h>
+#include <lac/block_matrix_array.h>
+#include <lac/sparse_matrix.h>
+#include <lac/precondition_block.h>
+#include <iostream>
+#include <fstream>
+
+
+int main () 
+{
+  std::ofstream logfile("block_matrix_array_02.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  BlockMatrixArray<SparseMatrix<double> >::value_type i = 1.0;
+  deallog << i << std::endl;
+
+                                  // the following did not compile
+                                  // right away
+  PreconditionBlockSSOR<BlockMatrixArray<SparseMatrix<double> > > p;
+  
+  return 0;
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.