From d282a5914d3e64a24b4492c0e3384dbdc6cfd3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Schl=C3=BCter?= Date: Fri, 15 Jul 2016 15:26:25 +0200 Subject: [PATCH] fix compiler errors in mpi build --- libsrc/general/mpi_interface.hpp | 4 ++-- ng/parallelfunc.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index a78794b1..a2014615 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -39,9 +39,9 @@ namespace netgen { return MPI_DOUBLE; } - template class Vec; + template class Vec; template <> - inline MPI_Datatype MyGetMPIType > () + inline MPI_Datatype MyGetMPIType > () { static MPI_Datatype MPI_T = 0; if (!MPI_T) diff --git a/ng/parallelfunc.cpp b/ng/parallelfunc.cpp index aff1b89e..2efb0259 100644 --- a/ng/parallelfunc.cpp +++ b/ng/parallelfunc.cpp @@ -29,14 +29,13 @@ #include - +#include "../interface/writeuser.hpp" void (*NGS_ParallelRun) (const string & message) = NULL; namespace netgen { -#include "../interface/writeuser.hpp" extern string ngdir; #ifdef OPENGL