From: abn Date: Thu, 13 Nov 2014 10:41:25 +0000 (+0100) Subject: Moving implementation of functions containing calls to deprecated X-Git-Tag: V7_5_0rc1~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fabn%2Fgauthier;p=tools%2Fmedcoupling.git Moving implementation of functions containing calls to deprecated MPI_Type_Extent to the cxx file. --- diff --git a/src/ParaMEDMEM/MPIAccess.cxx b/src/ParaMEDMEM/MPIAccess.cxx index e0a9ea576..e4235a19a 100644 --- a/src/ParaMEDMEM/MPIAccess.cxx +++ b/src/ParaMEDMEM/MPIAccess.cxx @@ -1033,6 +1033,30 @@ namespace ParaMEDMEM } } + // Returns the MPI size of a TimeMessage + MPI_Aint MPIAccess::timeExtent() const + { + MPI_Aint aextent ; + MPI_Type_extent( _MPI_TIME , &aextent ) ; + return aextent ; + } + + // Returns the MPI size of a MPI_INT + MPI_Aint MPIAccess::intExtent() const + { + MPI_Aint aextent ; + MPI_Type_extent( MPI_INT , &aextent ) ; + return aextent ; + } + + // Returns the MPI size of a MPI_DOUBLE + MPI_Aint MPIAccess::doubleExtent() const + { + MPI_Aint aextent ; + MPI_Type_extent( MPI_DOUBLE , &aextent ) ; + return aextent ; + } + // Outputs fields of a TimeMessage structure ostream & operator<< (ostream & f ,const TimeMessage & aTimeMsg ) { diff --git a/src/ParaMEDMEM/MPIAccess.hxx b/src/ParaMEDMEM/MPIAccess.hxx index b229c125e..f9ee38fd3 100644 --- a/src/ParaMEDMEM/MPIAccess.hxx +++ b/src/ParaMEDMEM/MPIAccess.hxx @@ -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 {