From 3864eb2e35f5cbcc90272dbb8c836f2fedd2a3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Tue, 4 Aug 2020 23:50:11 +0200 Subject: [PATCH] use MPI_DATAYPE_NULL thx stefanozampini --- libsrc/meshing/meshtype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index cd8e2329..0730c9d8 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -22,7 +22,7 @@ namespace netgen { static MPI_Datatype type = MPI_DATATYPE_NULL; static MPI_Datatype htype = MPI_DATATYPE_NULL; - if (!type) + if (type == MPI_DATATYPE_NULL) { MeshPoint hp; int blocklen[] = { 3, 1, 1 };