From 215fd1bca72f2b934ee2c5dc7f5e2fdb50f8b3ce Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 2 Dec 2014 21:53:29 +0000 Subject: [PATCH] non-parallel fix --- libsrc/include/nginterface_v2.hpp | 2 ++ libsrc/interface/nginterface_v2.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/libsrc/include/nginterface_v2.hpp b/libsrc/include/nginterface_v2.hpp index 32c4e16f..a817c53e 100644 --- a/libsrc/include/nginterface_v2.hpp +++ b/libsrc/include/nginterface_v2.hpp @@ -230,7 +230,9 @@ namespace netgen int * const indices = NULL, int numind = 0) const; +#ifdef PARALLEL std::tuple GetDistantProcs (int nodetype, int locnum) const; +#endif shared_ptr SelectMesh () const; }; diff --git a/libsrc/interface/nginterface_v2.cpp b/libsrc/interface/nginterface_v2.cpp index 6e6724f4..469d3b9f 100644 --- a/libsrc/interface/nginterface_v2.cpp +++ b/libsrc/interface/nginterface_v2.cpp @@ -660,6 +660,7 @@ namespace netgen } +#ifdef PARALLEL std::tuple Ngx_Mesh :: GetDistantProcs (int nodetype, int locnum) const { @@ -686,6 +687,8 @@ namespace netgen } } +#endif + }