]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the sparsity communicator to model the communicator for the sparse matrix.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Aug 2009 18:44:33 +0000 (18:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Aug 2009 18:44:33 +0000 (18:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@19215 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc

index 34df2630fcbc86a9dc00439ad56071b5eabd1b72..bdd43ee75da8d9513b20bd625627529bdfdf5d5d 100755 (executable)
@@ -514,6 +514,12 @@ namespace TrilinosWrappers
                                   // sparsity pattern.
     matrix.reset();
 
+                                    // model the communicator on the
+                                    // one used for the sparsity
+                                    // pattern
+    communicator.reset (Utilities::Trilinos::
+                       duplicate_communicator (sparsity_pattern.trilinos_communicator()));
+    
     row_map = Utilities::Trilinos::duplicate_map (sparsity_pattern.range_partitioner(),
                                                  *communicator);
     col_map = Utilities::Trilinos::duplicate_map (sparsity_pattern.domain_partitioner(),
@@ -523,7 +529,7 @@ namespace TrilinosWrappers
                 ExcMessage("The Trilinos sparsity pattern has not been compressed"));
 
     matrix = std::auto_ptr<Epetra_FECrsMatrix>
-      (new Epetra_FECrsMatrix(Copy, sparsity_pattern.trilinos_sparsity_pattern(),
+            (new Epetra_FECrsMatrix(Copy, sparsity_pattern.trilinos_sparsity_pattern(),
                              false));
     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.