]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Write something into each output file.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:01:05 +0000 (22:01 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:01:05 +0000 (22:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@16456 0785d39b-7218-0410-832d-ea1e28bc413d

12 files changed:
tests/lac/sparsity_pattern_01/cmp/generic
tests/lac/sparsity_pattern_02/cmp/generic
tests/lac/sparsity_pattern_03/cmp/generic
tests/lac/sparsity_pattern_04/cmp/generic
tests/lac/sparsity_pattern_05/cmp/generic
tests/lac/sparsity_pattern_06/cmp/generic
tests/lac/sparsity_pattern_07/cmp/generic
tests/lac/sparsity_pattern_08/cmp/generic
tests/lac/sparsity_pattern_09/cmp/generic
tests/lac/sparsity_pattern_10/cmp/generic
tests/lac/sparsity_pattern_11/cmp/generic
tests/lac/sparsity_pattern_common.h

index b77e22b1820aef83d5096b5d3190afc5b902afc2..57a525d75726a891e67d6404699e8eeee893cc03 100644 (file)
@@ -196,3 +196,4 @@ DEAL::4
 DEAL::4
 DEAL::4
 DEAL::3
+DEAL::OK
index cc7701cede93d7b07d99f9fd94ee77a29fc3cfb0..0215e86d6c85da7d06ea146be2a899287110fea1 100644 (file)
@@ -924,3 +924,4 @@ DEAL::196 196 14 924
 195 -195
 181 -195
 194 -195
+DEAL::OK
index 456e140a0e6005129dd143a2a42980cffe89cad9..9631711e794ad3b239a8741cda9e59fc692492f7 100644 (file)
@@ -196,3 +196,4 @@ DEAL::196 196 14 924
 [193,193,179,192,194]
 [194,194,180,193,195]
 [195,195,181,194]
+DEAL::OK
index 8e2d4f6cee3bc48c205bd9161732133e27dd1e92..9200a05dd738357bf0bc0e602f07992314eef7cd 100644 (file)
@@ -1535,3 +1535,4 @@ DEAL::4
 181 -195
 193 -195
 194 -195
+DEAL::OK
index 32469cb3c31ee2b08bd0090b342040fa98d6c14d..91d1296dee3829e1698da001c27d3bbd98621e8a 100644 (file)
@@ -1919,3 +1919,4 @@ DEAL::5
 181 -195
 193 -195
 194 -195
+DEAL::OK
index e9c0e907408b03be90f70851e6b659659dac64be..abdb63db078b4660179d8e85221d1e7bcb31755f 100644 (file)
@@ -1,2 +1,3 @@
 
 DEAL::196 196 14 924
+DEAL::OK
index e9c0e907408b03be90f70851e6b659659dac64be..abdb63db078b4660179d8e85221d1e7bcb31755f 100644 (file)
@@ -1,2 +1,3 @@
 
 DEAL::196 196 14 924
+DEAL::OK
index e9c0e907408b03be90f70851e6b659659dac64be..abdb63db078b4660179d8e85221d1e7bcb31755f 100644 (file)
@@ -1,2 +1,3 @@
 
 DEAL::196 196 14 924
+DEAL::OK
index 8b137891791fe96927ad78e64b0aad7bded08bdc..0fd8fc12f0b442283edd8868867114c242b04d11 100644 (file)
@@ -1 +1,2 @@
 
+DEAL::OK
index e9c0e907408b03be90f70851e6b659659dac64be..abdb63db078b4660179d8e85221d1e7bcb31755f 100644 (file)
@@ -1,2 +1,3 @@
 
 DEAL::196 196 14 924
+DEAL::OK
index 5815bd43abbb15ba842264ea9586871c3f08dd24..33d14909f78b6520cf50bf04882aa0707bbd9a96 100644 (file)
@@ -1,3 +1,4 @@
 
 DEAL::196 196 14 924
 DEAL::0 0 0 0 
+DEAL::OK
index fef143b6afb6c63f2179f5b9e32e0e277aaa30eb..229e33acaffdca88e73853dfcdeea92db96a15ec 100644 (file)
@@ -19,6 +19,7 @@
 #include <lac/sparsity_pattern.h>
 #include <lac/compressed_sparsity_pattern.h>
 #include <lac/compressed_set_sparsity_pattern.h>
+#include <lac/chunk_sparsity_pattern.h>
 #include <lac/full_matrix.h>
 #include "testmatrix.h"
 #include <fstream>
@@ -30,6 +31,7 @@
 
 
 const unsigned int N = 15;
+unsigned int chunk_size = 1;
 
 
 // reinitialize sparsity patterns for 5-point star
@@ -39,6 +41,12 @@ void do_reinit (SparsityPattern &sp)
 }
 
 
+void do_reinit (ChunkSparsityPattern &sp)
+{
+  sp.reinit((N-1)*(N-1), (N-1)*(N-1), 5, chunk_size);
+}
+
+
 void do_reinit (CompressedSparsityPattern &sp)
 {
   sp.reinit((N-1)*(N-1), (N-1)*(N-1));
@@ -76,6 +84,8 @@ void row_length ()
   
   for (unsigned int i=0; i<sparsity_pattern.n_rows(); ++i)
     deallog << sparsity_pattern.row_length(i) << std::endl;
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -86,6 +96,8 @@ void print_gnuplot ()
   build_sparsity (sparsity_pattern);
 
   sparsity_pattern.print_gnuplot(deallog.get_file_stream());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -97,6 +109,8 @@ void print ()
   build_sparsity (sparsity_pattern);
 
   sparsity_pattern.print(deallog.get_file_stream());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -117,6 +131,8 @@ void copy_with_offdiagonals_1 ()
   for (unsigned int i=0; i<sp2.n_rows(); ++i)
     deallog << sp2.row_length(i) << std::endl;
   sp2.print_gnuplot(deallog.get_file_stream());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -142,6 +158,8 @@ void copy_with_offdiagonals_2 ()
   for (unsigned int i=0; i<sp3.n_rows(); ++i)
     deallog << sp3.row_length(i) << std::endl;
   sp3.print_gnuplot(deallog.get_file_stream());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -240,6 +258,8 @@ void copy_from_1 ()
                        sparsity_pattern.matrix_position(i).second)
            == true,
            ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -262,6 +282,8 @@ void copy_from_2 ()
     for (unsigned int j=0; j<sparsity_pattern.n_cols(); ++j)
       Assert (sparsity_pattern.exists(i,j) == sp4.exists (i,j),
              ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -284,6 +306,8 @@ void copy_from_3 ()
     for (unsigned int j=0; j<sparsity_pattern.n_cols(); ++j)
       Assert (sparsity_pattern.exists(i,j) == sp4.exists (i,j),
              ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -316,6 +340,8 @@ void copy_from_4 ()
        Assert (sp4.exists (i,j)
                == true,
                ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
 
@@ -340,6 +366,8 @@ void matrix_position ()
        Assert (sparsity_pattern.matrix_position(sparsity_pattern(row,col)) ==
                std::make_pair(row,col),
                ExcInternalError());
+
+  deallog << "OK" << std::endl;
 }
 
   
@@ -369,17 +397,12 @@ void block_read_write ()
          << (sparsity_pattern.is_compressed() ^ sp5.is_compressed()) << ' '
          << std::endl;
   
-  for (unsigned int row=0; row<sparsity_pattern.n_rows(); ++row)
-    {
-      const unsigned int
-        *sparsity_pattern_p=sparsity_pattern.get_column_numbers()+sparsity_pattern.get_rowstart_indices()[row];
-      const unsigned int
-        *sp5_p=sp5.get_column_numbers()+sp5.get_rowstart_indices()[row];
-      for (; sparsity_pattern_p != (sparsity_pattern.get_column_numbers() +
-                                   sparsity_pattern.get_rowstart_indices()[row+1]);
-           ++sparsity_pattern_p, ++sp5_p)
-       Assert (*sparsity_pattern_p == *sp5_p, ExcInternalError());
-    }
+  for (unsigned int i=0; i<sparsity_pattern.n_rows(); ++i)
+    for (unsigned int j=0; j<sparsity_pattern.n_cols(); ++j)
+      Assert (sparsity_pattern.exists(i,j) == sp5.exists (i,j),
+             ExcInternalError());
+
+  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.