]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Minor: portability issue. On CentOS5.2, MPI_Datatype is an int.
authorabn <adrien.bruneton@cea.fr>
Tue, 9 Jun 2015 12:20:51 +0000 (14:20 +0200)
committerabn <adrien.bruneton@cea.fr>
Tue, 9 Jun 2015 12:20:51 +0000 (14:20 +0200)
Also turned deprecated SUBDIRS() Cmake command into ADD_SUBDIRECTORY().

src/ParaMEDMEM/MPIAccess.hxx

index 9f4eea74400aef85f5b1a1c92134031e2d988bf0..d438c8cec980f37cd01d43e61e230bb491354e66 100644 (file)
@@ -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