From 5e4d38a86afcc534d4e69a2fc2b985075b5bde22 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 14 Aug 2015 21:00:25 -0500 Subject: [PATCH] Fix a couple of compiler errors with non-MPI compiles. This fixes other fallout from #212. --- source/distributed/shared_tria.cc | 11 +---------- source/distributed/tria_base.cc | 8 ++++++-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/source/distributed/shared_tria.cc b/source/distributed/shared_tria.cc index 65035186c9..b8832f527c 100644 --- a/source/distributed/shared_tria.cc +++ b/source/distributed/shared_tria.cc @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id: tria.cc 32807 2014-04-22 15:01:57Z heister $ // -// Copyright (C) 2008 - 2013 by the deal.II authors +// Copyright (C) 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -106,15 +106,6 @@ namespace parallel { Assert (false, ExcNotImplemented()); } - - template - types::subdomain_id - Triangulation::locally_owned_subdomain () const - { - Assert (false, ExcNotImplemented()); - return 0; - } - } } diff --git a/source/distributed/tria_base.cc b/source/distributed/tria_base.cc index 39fd50d54c..94b53abd0c 100644 --- a/source/distributed/tria_base.cc +++ b/source/distributed/tria_base.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2008 - 2013 by the deal.II authors +// Copyright (C) 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -86,7 +86,9 @@ namespace parallel { std::size_t mem= this->dealii::Triangulation::memory_consumption() +#ifdef DEAL_II_WITH_MPI + MemoryConsumption::memory_consumption(mpi_communicator) +#endif + MemoryConsumption::memory_consumption(my_subdomain) + MemoryConsumption::memory_consumption(number_cache.n_locally_owned_active_cells) + MemoryConsumption::memory_consumption(number_cache.n_global_active_cells) @@ -98,9 +100,11 @@ namespace parallel template Triangulation::~Triangulation () { +#ifdef DEAL_II_WITH_MPI // get rid of the unique communicator used here again MPI_Comm_free (&this->mpi_communicator); - }; +#endif + } template Triangulation::NumberCache::NumberCache() -- 2.39.5