]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add sparsity patterns to is_block_matrix type.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Apr 2009 12:35:07 +0000 (12:35 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Apr 2009 12:35:07 +0000 (12:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@18544 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/block_vector_copy.cc
tests/lac/is_block_matrix.cc
tests/lac/is_block_matrix/cmp/generic

index 35d7dd453a1ad8dfe734ea2b1b67c0dea8da9c0e..c4d437b9a72f5ee52ff41770fe5c40111cf595ac 100644 (file)
@@ -16,6 +16,7 @@
 #include <base/logstream.h>
 #include <lac/block_vector.h>
 #include <fstream>
+#include <iostream>
 #include <iomanip>
 #include <vector>
 #include <list>
index ab0c932af4588dc6a1be8eab2a1e71b55535506d..5d5998f16c03a781a7c6b213b582a80715dd74ff 100644 (file)
 #include "../tests.h"
 #include <base/logstream.h>
 #include <lac/block_sparse_matrix.h>
+#include <lac/sparsity_pattern.h>
+#include <lac/compressed_sparsity_pattern.h>
+#include <lac/compressed_simple_sparsity_pattern.h>
+#include <lac/compressed_set_sparsity_pattern.h>
+#include <lac/block_sparsity_pattern.h>
 #include <lac/block_sparse_matrix_ez.h>
 
 #include <fstream>
@@ -42,6 +47,16 @@ void test ()
          << IsBlockMatrix<BlockSparseMatrix<float> >::value << ' '
          << IsBlockMatrix<BlockSparseMatrixEZ<double> >::value << ' '
          << IsBlockMatrix<BlockSparseMatrixEZ<float> >::value << std::endl;
+
+  deallog << IsBlockMatrix<SparsityPattern>::value << ' '
+         << IsBlockMatrix<CompressedSparsityPattern>::value << ' '
+         << IsBlockMatrix<CompressedSetSparsityPattern>::value << ' '
+         << IsBlockMatrix<CompressedSimpleSparsityPattern>::value << std::endl;
+
+  deallog << IsBlockMatrix<BlockSparsityPattern>::value << ' '
+         << IsBlockMatrix<BlockCompressedSparsityPattern>::value << ' '
+         << IsBlockMatrix<BlockCompressedSetSparsityPattern>::value << ' '
+         << IsBlockMatrix<BlockCompressedSimpleSparsityPattern>::value << std::endl;
 }
 
 
index 4fb8dd847733f5681b8f5a40e8e3f7ab074c2ea5..8c8305ceee43b989baeb09ec0ee0470290b3d8d5 100644 (file)
@@ -1,3 +1,5 @@
-JobId unknown Sat Mar 28 23:18:30 2009
+
+DEAL::0 0 0 0
+DEAL::1 1 1 1
 DEAL::0 0 0 0
 DEAL::1 1 1 1

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.