]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug from #432: Only do MPI::sum when MPI is initialized. 435/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 13 Jan 2015 14:40:01 +0000 (15:40 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 13 Jan 2015 14:40:01 +0000 (15:40 +0100)
source/base/partitioner.cc

index 39240e1e4e541785abbb9a670f0e5e5d1ef21080..a75dad66b5c780953e13b45c99618145ba74dcd5 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.