From 1b4bc64877d5fa41db829e9e6a61a323fb25249d Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 29 Oct 2015 09:49:10 +0100 Subject: [PATCH] fix shared::Tria for no-MPI case --- include/deal.II/distributed/shared_tria.h | 16 ++++++++++++++++ source/distributed/shared_tria.cc | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) 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; + } + } } -- 2.39.5