From dc5793546877cb9674749f1d893020dda53f9d7b Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 13 Oct 2021 09:24:05 -0700 Subject: [PATCH] include gzsteram.h only where needed --- libsrc/csg/python_csg.cpp | 1 + libsrc/general/gzstream.cpp | 2 +- libsrc/general/myadt.hpp | 1 - libsrc/interface/nginterface.cpp | 2 ++ libsrc/interface/writeOpenFOAM15x.cpp | 1 + libsrc/interface/writeuser.cpp | 1 + libsrc/meshing/meshclass.cpp | 1 + libsrc/meshing/python_mesh.cpp | 1 + ng/ngpkg.cpp | 2 ++ 9 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 9bb9d65d..14a4bfef 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -4,6 +4,7 @@ #include #include #include "../meshing/python_mesh.hpp" +#include "../general/gzstream.h" using namespace netgen; diff --git a/libsrc/general/gzstream.cpp b/libsrc/general/gzstream.cpp index 9e8f5cb8..95c90f51 100644 --- a/libsrc/general/gzstream.cpp +++ b/libsrc/general/gzstream.cpp @@ -28,7 +28,7 @@ #include #include -//#include "gzstream.h" +#include "gzstream.h" //#include //#include // for memcpy diff --git a/libsrc/general/myadt.hpp b/libsrc/general/myadt.hpp index ad6fd1c4..70a580be 100644 --- a/libsrc/general/myadt.hpp +++ b/libsrc/general/myadt.hpp @@ -45,7 +45,6 @@ namespace netgen #include "mpi_interface.hpp" #include "netgenout.hpp" -#include "gzstream.h" #endif diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index 525ed035..c564e5e2 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -8,6 +8,8 @@ #include "../sockets/sockets.hpp" #endif +#include "../general/gzstream.h" + #include "nginterface.h" // #include "../visualization/soldata.hpp" // #include diff --git a/libsrc/interface/writeOpenFOAM15x.cpp b/libsrc/interface/writeOpenFOAM15x.cpp index b824039b..db7f99c7 100644 --- a/libsrc/interface/writeOpenFOAM15x.cpp +++ b/libsrc/interface/writeOpenFOAM15x.cpp @@ -30,6 +30,7 @@ #include #include +#include "../general/gzstream.h" namespace netgen { diff --git a/libsrc/interface/writeuser.cpp b/libsrc/interface/writeuser.cpp index 90dacfd3..4a50f825 100644 --- a/libsrc/interface/writeuser.cpp +++ b/libsrc/interface/writeuser.cpp @@ -11,6 +11,7 @@ #include #include "writeuser.hpp" +#include "../general/gzstream.h" namespace netgen diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index bb4031c2..efe51f4d 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -2,6 +2,7 @@ #include #include #include "meshing.hpp" +#include "../general/gzstream.h" #ifdef NG_PYTHON // must be included to instantiate Archive::Shallow(NetgenGeometry&) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index f8c836be..60debf52 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -12,6 +12,7 @@ // #include #include <../interface/writeuser.hpp> #include <../include/nginterface.h> +#include <../general/gzstream.h> class ClearSolutionClass diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 3c8e5354..38a22514 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -22,6 +22,8 @@ The interface between the GUI and the netgen library #include "../libsrc/sockets/socketmanager.hpp" #endif +#include "../libsrc/general/gzstream.h" + // to be sure to include the 'right' togl-version #include "Togl2.1/togl.h"