From ed0675c0bc3a78f9696e1078fc709e1eb8194301 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 8 Sep 2016 11:30:33 -0500 Subject: [PATCH] Bugfix: Fix a compilation error introduced by #3061 --- source/distributed/tria_base.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/distributed/tria_base.cc b/source/distributed/tria_base.cc index 8b632b084a..6ab0594fd3 100644 --- a/source/distributed/tria_base.cc +++ b/source/distributed/tria_base.cc @@ -60,8 +60,9 @@ namespace parallel Triangulation::copy_triangulation (const dealii::Triangulation &other_tria) { #ifndef DEAL_II_WITH_MPI - Assert(false, ExcNotImplemented()); -#endif + Assert(false, ExcMessage("You compiled deal.II without MPI support, for " + "which parallel::Triangulation is not available.")); +#else dealii::Triangulation::copy_triangulation (other_tria); if (const dealii::parallel::Triangulation * @@ -70,6 +71,7 @@ namespace parallel MPI_Comm_free (&this->mpi_communicator); mpi_communicator = Utilities::MPI::duplicate_communicator (other_tria_x->get_communicator ()); } +#endif } -- 2.39.5