X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMPIContainer%2FMPIObject_i.cxx;h=ac51582e782179c9273ec57a5384e719b003a8e7;hb=9c6ed3579d4bd6b75aec9405620638b9629a2a45;hp=f38926f68dd3a2e7e6cb6c00a58ed920e624120d;hpb=177bd384038df8d3f3dfe9c293469e3437f0e96b;p=modules%2Fkernel.git diff --git a/src/MPIContainer/MPIObject_i.cxx b/src/MPIContainer/MPIObject_i.cxx index f38926f68..ac51582e7 100644 --- a/src/MPIContainer/MPIObject_i.cxx +++ b/src/MPIContainer/MPIObject_i.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -20,13 +20,10 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SALOME MPIContainer : implemenation of container based on MPI libraries -// File : MPIObject_i.cxx -// Module : SALOME -// #include "MPIObject_i.hxx" #include "utilities.h" #include "Utils_SALOME_Exception.hxx" +#include "Basics_MpiUtils.hxx" #define TIMEOUT 5 @@ -53,7 +50,7 @@ Engines::IORTab* MPIObject_i::tior() for(unsigned int ip=0;iplength();ip++) tior[ip] = (*_tior)[ip]; return tior._retn(); -}; +} void MPIObject_i::tior(const Engines::IORTab& ior) { @@ -157,8 +154,7 @@ void MPIObject_i::remoteMPI2Connect(std::string service) _srv[service] = false; MPI_Barrier(MPI_COMM_WORLD); - - MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN); + MPI_ERROR_HANDLER(MPI_ERRORS_RETURN); MPI_Info_create(&info); MPI_Info_set(info, "ompi_unique", "true"); if( _numproc == 0 ) @@ -207,7 +203,7 @@ void MPIObject_i::remoteMPI2Connect(std::string service) throw SALOME_Exception(msg.str().c_str()); } } - MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_ARE_FATAL); + MPI_ERROR_HANDLER(MPI_ERRORS_ARE_FATAL); /* If rank 0 is server, all processes call MPI_Comm_accept */ /* If rank 0 is not server, all processes call MPI_Comm_connect */