From: Denis Davydov 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=1b4bc64877d5fa41db829e9e6a61a323fb25249d;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 class Triangulation : public dealii::parallel::Triangulation { + public: + + /** + * A dummy function to return empty vector. + */ + const std::vector &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 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 + bool + Triangulation::with_artificial_cells() const + { + Assert (false, ExcNotImplemented()); + return true; + } + + template + const std::vector & + Triangulation::get_true_subdomain_ids_of_cells() const + { + Assert (false, ExcNotImplemented()); + return true_subdomain_ids_of_cells; + } + } }