use MPI_DATAYPE_NULL thx stefanozampini

This commit is contained in:
Joachim Schöberl 2020-08-04 23:36:19 +02:00
parent 7dbd9e6b54
commit 42a01b5c21

View File

@ -20,8 +20,8 @@ namespace netgen
#ifdef PARALLEL #ifdef PARALLEL
MPI_Datatype MeshPoint :: MyGetMPIType ( ) MPI_Datatype MeshPoint :: MyGetMPIType ( )
{ {
static MPI_Datatype type = NULL; static MPI_Datatype type = MPI_DATATYPE_NULL;
static MPI_Datatype htype = NULL; static MPI_Datatype htype = MPI_DATATYPE_NULL;
if (!type) if (!type)
{ {
MeshPoint hp; MeshPoint hp;