From 13ccb811e702dc217e9c5f195390ef17f49550bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 11 Feb 2019 23:13:12 +0100 Subject: [PATCH] mpiwrapper --- libsrc/core/mpi_wrapper.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index 083459ba..3cb6ce03 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -100,8 +100,14 @@ namespace ngcore #else - class MPI_Comm { }; - static MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; + class MPI_Comm { + int nr; + public: + MPI_Comm (int _nr = 0) : nr(_nr) { ; } + operator int() const { return nr; } + bool operator== (MPI_Comm c2) const { return nr == c2.nr; } + }; + static MPI_Comm MPI_COMM_WORLD = 12345, MPI_COMM_NULL = 10000; class NgMPI_Comm {