From: vsr Date: Tue, 29 Sep 2020 08:45:28 +0000 (+0300) Subject: Fix compilation with openmpi < 4.0 X-Git-Tag: V9_6_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6d36220513911046d270d6493813e30ea9397d8;p=tools%2Fmedcoupling.git Fix compilation with openmpi < 4.0 --- diff --git a/src/ParaMEDMEMTest/MPI2Connector.cxx b/src/ParaMEDMEMTest/MPI2Connector.cxx index a8a5bc432..ddcba11c2 100644 --- a/src/ParaMEDMEMTest/MPI2Connector.cxx +++ b/src/ParaMEDMEMTest/MPI2Connector.cxx @@ -29,10 +29,12 @@ #ifdef OMPI_MAJOR_VERSION # if OMPI_MAJOR_VERSION >= 4 -# define MPI_ERROR_HANDLER(var) MPI_Comm_set_errhandler(MPI_COMM_WORLD, var); +# define MPI_ERROR_HANDLER(var) MPI_Comm_set_errhandler(MPI_COMM_WORLD, var) +# else +# define MPI_ERROR_HANDLER(var) MPI_Errhandler_set(MPI_COMM_WORLD, var) # endif #else // MPICH and other versions: -# define MPI_ERROR_HANDLER(var) MPI_Errhandler_set(MPI_COMM_WORLD, var); +# define MPI_ERROR_HANDLER(var) MPI_Errhandler_set(MPI_COMM_WORLD, var) #endif MPI2Connector::MPI2Connector()