]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update for new SparsityPattern storage scheme.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Feb 2013 04:53:20 +0000 (04:53 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 10 Feb 2013 04:53:20 +0000 (04:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@28302 0785d39b-7218-0410-832d-ea1e28bc413d

tests/trilinos/sparse_matrix_07.cc
tests/trilinos/sparse_matrix_07/cmp/generic

index 7c3754e75ce4e569d0c2dceffda49572c7ae8e6b..6637f08708df31773ee9842299d5af424725e4f1 100644 (file)
@@ -49,8 +49,10 @@ int main (int argc,char **argv)
   deallog << "Original:" << std::endl;
   matrix.print_formatted (deallog.get_file_stream());
 
-  // create a separate sparsity pattern to use
-  SparsityPattern xsparsity (5,5,5,/*optimize_diagonal=*/false);
+  // create a separate sparsity pattern to use. note that this sparsity
+  // pattern stores the elements explicitly added here but also the diagonal
+  // entries (that's what SparsityPattern does for square matrices)
+  SparsityPattern xsparsity (5,5,5);
   xsparsity.add (1,2);
   xsparsity.add (2,3);
   xsparsity.add (2,4);
index 372283ed0a749ca1489fb120a5b5928cf05de4a5..eb8285b7174fe244d5282dfc419574c872275287 100644 (file)
@@ -6,7 +6,12 @@ DEAL::Original:
                                  6.000e+00  7.000e+00  
                                  9.000e+00  8.000e+00  
 DEAL::Copy structure only:
+(0,0) 1.00000
+(1,1) 2.00000
 (1,2) 3.00000
 (2,1) 0.00000
+(2,2) 4.00000
 (2,3) 5.00000
 (2,4) 0.00000
+(3,3) 6.00000
+(4,4) 8.00000

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.