From a023b1983d362ec7db2962eb52497e60bcb0bb45 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 12 Sep 2016 23:01:17 +0200 Subject: [PATCH] Add a guard for the non-MPI case --- source/base/index_set.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/base/index_set.cc b/source/base/index_set.cc index b174c0a33c..bff0e5349f 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -560,6 +560,7 @@ IndexSet::is_ascending_and_one_to_one (const MPI_Comm &communicator) const if (n_global_elements != size()) return false; +#ifdef DEAL_II_WITH_MPI // Non-contiguous IndexSets can't be linear. const bool all_contiguous = (Utilities::MPI::min (is_contiguous() ? 1 : 0, communicator) == 1); if (!all_contiguous) @@ -606,6 +607,9 @@ IndexSet::is_ascending_and_one_to_one (const MPI_Comm &communicator) const MPI_Bcast(&is_ascending, 1, MPI_INT, 0, communicator); return (is_ascending==1); +#else + return true; +#endif //DEAL_II_WITH_MPI } -- 2.39.5