]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Compress Trilinos sparse matrix before and after clearing rows.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Nov 2008 15:49:16 +0000 (15:49 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Nov 2008 15:49:16 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@17534 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc

index ea603df8b9b75906fdc349330e7f0433d70fddbd..d0bd56a5147102d56d70b5a1b454596d0b91e596 100755 (executable)
@@ -773,8 +773,16 @@ namespace TrilinosWrappers
   SparseMatrix::clear_rows (const std::vector<unsigned int> &rows,
                            const TrilinosScalar             new_diag_value)
   {
+    compress();
     for (unsigned int row=0; row<rows.size(); ++row)
       clear_row(rows[row], new_diag_value);
+
+                                       // This function needs to be called
+                                       // on all processors. We change some
+                                       // data, so we need to flush the
+                                       // buffers to make sure that the
+                                       // right data is used.
+    compress();
   }
 
 

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.