From: Denis Davydov <davydden@gmail.com>
Date: Thu, 29 Oct 2015 08:49:10 +0000 (+0100)
Subject: fix shared::Tria for no-MPI case
X-Git-Tag: v8.4.0-rc2~269^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1810%2Fhead;p=dealii.git

fix shared::Tria for no-MPI case
---

diff --git a/include/deal.II/distributed/shared_tria.h b/include/deal.II/distributed/shared_tria.h
index d0aa299734..59ac4c9483 100644
--- a/include/deal.II/distributed/shared_tria.h
+++ b/include/deal.II/distributed/shared_tria.h
@@ -170,11 +170,27 @@ namespace parallel
     template <int dim, int spacedim = dim>
     class Triangulation : public dealii::parallel::Triangulation<dim,spacedim>
     {
+    public:
+
+      /**
+       * A dummy function to return empty vector.
+       */
+      const std::vector<types::subdomain_id> &get_true_subdomain_ids_of_cells() const;
+
+      /**
+       * A dummy function which always returns true.
+       */
+      bool with_artificial_cells() const;
     private:
       /**
        * Constructor.
        */
       Triangulation ();
+
+      /**
+       * A dummy vector.
+       */
+      std::vector<types::subdomain_id> true_subdomain_ids_of_cells;
     };
   }
 
diff --git a/source/distributed/shared_tria.cc b/source/distributed/shared_tria.cc
index 9edc8f903f..218cff2ff1 100644
--- a/source/distributed/shared_tria.cc
+++ b/source/distributed/shared_tria.cc
@@ -154,6 +154,23 @@ namespace parallel
     {
       Assert (false, ExcNotImplemented());
     }
+
+    template <int dim, int spacedim>
+    bool
+    Triangulation<dim,spacedim>::with_artificial_cells() const
+    {
+      Assert (false, ExcNotImplemented());
+      return true;
+    }
+
+    template <int dim, int spacedim>
+    const std::vector<unsigned int> &
+    Triangulation<dim,spacedim>::get_true_subdomain_ids_of_cells() const
+    {
+      Assert (false, ExcNotImplemented());
+      return true_subdomain_ids_of_cells;
+    }
+
   }
 }