From 63d2f4bcd09c2b63a840ce58b194fe9c15312078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 11 Feb 2019 22:53:32 +0100 Subject: [PATCH] mpiwrapper --- libsrc/core/mpi_wrapper.hpp | 1 + libsrc/general/mpi_interface.cpp | 4 ++-- libsrc/general/mpi_interface.hpp | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index c072452b..083459ba 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -101,6 +101,7 @@ namespace ngcore #else class MPI_Comm { }; + static MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; class NgMPI_Comm { diff --git a/libsrc/general/mpi_interface.cpp b/libsrc/general/mpi_interface.cpp index e16f6c8e..f75b0639 100644 --- a/libsrc/general/mpi_interface.cpp +++ b/libsrc/general/mpi_interface.cpp @@ -44,8 +44,8 @@ namespace netgen } -#else - MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; + // #else + // MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; #endif diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index ac54309d..15e13171 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -40,7 +40,6 @@ namespace netgen } #else // enum { MPI_COMM_WORLD = 12345, MPI_COMM_NULL = 0}; - extern MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm) { return 1; } inline int MyMPI_GetId (MPI_Comm comm = ng_comm) { return 0; } #endif