X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEM%2FMPIAccess.hxx;h=f43a68d0312793a4f0748b3258c066b6a88451b0;hb=ffdef130a5a36893d8e58d538884e79413975c7a;hp=b229c125e92fbfc157230dd259765e161bd854b3;hpb=fb512e2b77325290aaa2b4c9fd8f22d5949b6369;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEM/MPIAccess.hxx b/src/ParaMEDMEM/MPIAccess.hxx index b229c125e..f43a68d03 100644 --- a/src/ParaMEDMEM/MPIAccess.hxx +++ b/src/ParaMEDMEM/MPIAccess.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -29,7 +29,7 @@ #include #include -namespace ParaMEDMEM +namespace MEDCoupling { typedef struct { @@ -259,30 +259,6 @@ namespace ParaMEDMEM return ((aMPITag%MODULO_TAG) == _message_time) ; } - // Returns the MPI size of a TimeMessage - inline MPI_Aint MPIAccess::timeExtent() const - { - MPI_Aint aextent ; - MPI_Type_extent( _MPI_TIME , &aextent ) ; - return aextent ; - } - - // Returns the MPI size of a MPI_INT - inline MPI_Aint MPIAccess::intExtent() const - { - MPI_Aint aextent ; - MPI_Type_extent( MPI_INT , &aextent ) ; - return aextent ; - } - - // Returns the MPI size of a MPI_DOUBLE - inline MPI_Aint MPIAccess::doubleExtent() const - { - MPI_Aint aextent ; - MPI_Type_extent( MPI_DOUBLE , &aextent ) ; - return aextent ; - } - // Returns the MPI size of the MPI_Datatype datatype inline MPI_Aint MPIAccess::extent( MPI_Datatype adatatype ) const { @@ -346,7 +322,7 @@ namespace ParaMEDMEM struct RequestStruct *aRequestStruct = _map_of_request_struct[ RequestId ] ; if ( aRequestStruct ) return aRequestStruct->MPIDatatype; - return (MPI_Datatype ) NULL ; + return MPI_DATATYPE_NULL; } // Returns the size of the receiving message of the request corresponding to