From 33baee37e30e0a1b18cde41be74bb2f3b9960515 Mon Sep 17 00:00:00 2001 From: abn Date: Thu, 13 Nov 2014 11:41:25 +0100 Subject: [PATCH] Moving implementation of functions containing calls to deprecated MPI_Type_Extent to the cxx file. --- src/ParaMEDMEM/MPIAccess.cxx | 24 ++++++++++++++++++++++++ src/ParaMEDMEM/MPIAccess.hxx | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) 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 { -- 2.39.2