Salome HOME
Add test for .mesh file format
[tools/medcoupling.git] / src / ParaMEDMEMTest / MPI2Connector.cxx
index a8a5bc432e3264d32cac33556811a16778bb5518..c36aa063ce71270feba8bc3a6b8f60b54fb04067 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #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()