From: Timo Heister Date: Tue, 24 Mar 2020 14:32:17 +0000 (-0400) Subject: MPI: silence "avoid a deadlock" error message X-Git-Tag: v9.2.0-rc1~371^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=742c5dcce2bd2e3aa008c081c0a7d90341996518;p=dealii.git MPI: silence "avoid a deadlock" error message When an exception occurs (solver convergence, out of memory, etc..), we end up printing an error message from every single MPI rank. I have never used this information in practice and it produces a lot of unnecessary noise. Even worse, it produces gigantic, useless log files when running with 100k+ MPI ranks. Therefore, I proposed removing this altogether. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 3d7fe8b5e3..d0a62bc9bb 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -976,11 +976,7 @@ namespace Utilities if (std::uncaught_exception() == true) # endif { - std::cerr - << "ERROR: Uncaught exception in MPI_InitFinalize on proc " - << this_mpi_process(MPI_COMM_WORLD) - << ". Skipping MPI_Finalize() to avoid a deadlock." - << std::endl; + // do not try to call MPI_Finalize to avoid a deadlock. } else {