From 548807f8564290811851e58cee60ac639ac4eb91 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 13 Jan 2015 15:40:01 +0100 Subject: [PATCH] Fix a bug from #432: Only do MPI::sum when MPI is initialized. --- source/base/partitioner.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/base/partitioner.cc b/source/base/partitioner.cc index 39240e1e4e..a75dad66b5 100644 --- a/source/base/partitioner.cc +++ b/source/base/partitioner.cc @@ -141,6 +141,7 @@ namespace Utilities n_ghost_indices_data = ghost_indices_data.n_elements(); have_ghost_indices = + Utilities::System::job_supports_mpi() && Utilities::MPI::sum(n_ghost_indices_data, communicator) > 0; // In the rest of this function, we determine the point-to-point -- 2.39.5