]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jul 2008 17:37:36 +0000 (17:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jul 2008 17:37:36 +0000 (17:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@16469 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/sparsity_pattern_common.h

index e5895fd985337855e5b83c2dc9e8d6b04e854d8c..60264d599496ae4d9d8199372605e9e84fbda77e 100644 (file)
@@ -158,6 +158,26 @@ void copy_with_offdiagonals_1<ChunkSparsityPattern> ()
 
 
 
+template <>
+void copy_with_offdiagonals_1<CompressedSparsityPattern> ()
+{
+                                  // this sparsity pattern doesn't have this
+                                  // function
+  deallog << "OK" << std::endl;
+}
+
+
+
+template <>
+void copy_with_offdiagonals_1<CompressedSetSparsityPattern> ()
+{
+                                  // this sparsity pattern doesn't have this
+                                  // function
+  deallog << "OK" << std::endl;
+}
+
+
+
 template <typename SP>
 void copy_with_offdiagonals_2 ()
 {
@@ -190,6 +210,26 @@ void copy_with_offdiagonals_2<ChunkSparsityPattern> ()
 
 
 
+template <>
+void copy_with_offdiagonals_2<CompressedSparsityPattern> ()
+{
+                                  // this sparsity pattern doesn't have this
+                                  // function
+  deallog << "OK" << std::endl;
+}
+
+
+
+template <>
+void copy_with_offdiagonals_2<CompressedSetSparsityPattern> ()
+{
+                                  // this sparsity pattern doesn't have this
+                                  // function
+  deallog << "OK" << std::endl;
+}
+
+
+
 void
 do_copy_from (const std::list<std::set<unsigned int,std::greater<unsigned int> > > &sparsity,
              SparsityPattern &sp4)
@@ -469,6 +509,15 @@ void matrix_position<ChunkSparsityPattern> ()
 }
 
   
+template <>
+void matrix_position<CompressedSparsityPattern> ()
+{
+                                  // this class doesn't have that function
+  deallog << "OK" << std::endl;
+}
+
+
+
 template <typename SP>
 void block_read_write ()
 {
@@ -491,8 +540,6 @@ void block_read_write ()
                                   // sparsity_pattern and sp5
   deallog << sparsity_pattern.n_rows() - sp5.n_rows() << ' '
          << sparsity_pattern.n_cols() - sp5.n_cols() << ' '
-         << (sparsity_pattern.is_compressed() ^ sp5.is_compressed()) << ' '
-         << (sparsity_pattern.is_compressed() ^ sp5.is_compressed()) << ' '
          << std::endl;
   
   for (unsigned int i=0; i<sparsity_pattern.n_rows(); ++i)
@@ -503,5 +550,15 @@ void block_read_write ()
   deallog << "OK" << std::endl;
 }
 
-  
+
+
+template <>
+void block_read_write<CompressedSparsityPattern> ()
+{
+                                  // not implemented for this sparsity
+                                  // pattern
+  deallog << "OK" << std::endl;
+}
+
+
   

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.