From: Martin Kronbichler Date: Tue, 13 Jan 2015 14:40:01 +0000 (+0100) Subject: Fix a bug from #432: Only do MPI::sum when MPI is initialized. X-Git-Tag: v8.3.0-rc1~545^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=548807f8564290811851e58cee60ac639ac4eb91;p=dealii.git Fix a bug from #432: Only do MPI::sum when MPI is initialized. --- 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