From: abn Date: Tue, 9 Jun 2015 12:20:51 +0000 (+0200) Subject: Minor: portability issue. On CentOS5.2, MPI_Datatype is an int. X-Git-Tag: V7_7_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33e6a737054740435b4bb64e951402a7ba44c7b7;p=tools%2Fmedcoupling.git Minor: portability issue. On CentOS5.2, MPI_Datatype is an int. Also turned deprecated SUBDIRS() Cmake command into ADD_SUBDIRECTORY(). --- diff --git a/src/ParaMEDMEM/MPIAccess.hxx b/src/ParaMEDMEM/MPIAccess.hxx index 9f4eea744..d438c8cec 100644 --- a/src/ParaMEDMEM/MPIAccess.hxx +++ b/src/ParaMEDMEM/MPIAccess.hxx @@ -322,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