From 33e6a737054740435b4bb64e951402a7ba44c7b7 Mon Sep 17 00:00:00 2001 From: abn Date: Tue, 9 Jun 2015 14:20:51 +0200 Subject: [PATCH] Minor: portability issue. On CentOS5.2, MPI_Datatype is an int. Also turned deprecated SUBDIRS() Cmake command into ADD_SUBDIRECTORY(). --- src/ParaMEDMEM/MPIAccess.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2