From: Martin Kronbichler Date: Mon, 3 Feb 2020 10:09:14 +0000 (+0100) Subject: Avoid setting up an MPI data type for serial comm X-Git-Tag: v9.2.0-rc1~556^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd7a17c06b79294eeea485dd50367e53b5664027;p=dealii.git Avoid setting up an MPI data type for serial comm --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 400a787440..334453313e 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -531,7 +531,8 @@ namespace Utilities { // If MPI was not started, we have a serial computation and cannot run // the other MPI commands - if (job_supports_mpi() == false) + if (job_supports_mpi() == false || + Utilities::MPI::n_mpi_processes(mpi_communicator) <= 1) { MinMaxAvg result; result.sum = my_value;