-// 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
#include <vector>
#include <iostream>
-namespace ParaMEDMEM
+namespace MEDCoupling
{
typedef struct
{
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
{
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