]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow to query the communicator object.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 10 Aug 2009 18:44:10 +0000 (18:44 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 10 Aug 2009 18:44:10 +0000 (18:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@19214 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_sparsity_pattern.h

index 96d9997456a7f9df2a3e26ccd384b68440ac0c0c..00840e3b2e028f279707633882a95edc7c2d996e 100755 (executable)
@@ -883,6 +883,13 @@ namespace TrilinosWrappers
                                         * matrix.
                                         */
       const Epetra_Map & col_partitioner () const;
+
+                                      /**
+                                       * Return a const reference to
+                                       * the communicator used for
+                                       * this object.
+                                       */
+      const Epetra_Comm & trilinos_communicator () const;
 //@}
 /**
  * @name Iterators
@@ -1406,6 +1413,14 @@ namespace TrilinosWrappers
   }
 
 
+  inline
+  const Epetra_Comm &
+  SparsityPattern::trilinos_communicator () const
+  {
+    return *communicator;
+  }
+
+
 #endif // DOXYGEN      
 }
 

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.