]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix shared::Tria for no-MPI case 1810/head
authorDenis Davydov <davydden@gmail.com>
Thu, 29 Oct 2015 08:49:10 +0000 (09:49 +0100)
committerDenis Davydov <davydden@gmail.com>
Thu, 29 Oct 2015 10:04:48 +0000 (11:04 +0100)
include/deal.II/distributed/shared_tria.h
source/distributed/shared_tria.cc

index d0aa29973412f50c0f3872df7317f1765cad8bef..59ac4c9483f32d78a6b418d52aeee8a448dab608 100644 (file)
@@ -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;
     };
   }
 
index 9edc8f903fad7575c28f56324ada76f0788a2a71..218cff2ff1f8df625661dc748e4ef4f4e85471c7 100644 (file)
@@ -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;
+    }
+
   }
 }
 

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.