]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow compilation when using MPI but not p4est.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Sep 2011 18:23:54 +0000 (18:23 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 23 Sep 2011 18:23:54 +0000 (18:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@24399 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/distributed/tria.h
deal.II/source/distributed/tria.cc

index f0c3266e0271ad94723ff55f8011a8477b0abb97..62d91ad0c6945fbaa142b74e1c9b232604f27b15 100644 (file)
@@ -808,6 +808,15 @@ namespace parallel
                                          * on other processors.
                                          */
        types::subdomain_id_t locally_owned_subdomain () const;
+
+                                        /**
+                                         * Return the MPI
+                                         * communicator used by this
+                                         * triangulation.
+                                         */
+#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
+       MPI_Comm get_communicator () const;
+#endif
     };
   }
 }
index fdd9f503d218c95c861fcf0a4ca7c28cb3179ff6..7f7663a016e666817a81c096a72afddac56711ea 100644 (file)
@@ -3041,6 +3041,17 @@ namespace parallel
       Assert (false, ExcNotImplemented());
       return 0;
     }
+
+
+#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
+    template <int dim, int spacedim>
+    MPI_Comm
+    Triangulation<dim,spacedim>::get_communicator () const
+    {
+      Assert (false, ExcNotImplemented());
+      return MPI_COMM_WORLD;
+    }
+#endif
   }
 }
 

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.