From 945d0a7371eab9541b5b8374ba2e170b6b5e1444 Mon Sep 17 00:00:00 2001
From: Sebastian Eibl <sebastian.eibl@fau.de>
Date: Thu, 16 Nov 2017 14:09:01 +0100
Subject: [PATCH] added missing include guards

---
 apps/tutorials/cuda/01_GameOfLife_kernels.h     | 2 ++
 src/blockforest/loadbalancing/DynamicParMetis.h | 2 ++
 src/blockforest/loadbalancing/StaticParMetis.h  | 4 +++-
 src/core/load_balancing/MetisWrapper.h          | 4 +++-
 src/core/load_balancing/ParMetisWrapper.h       | 4 +++-
 5 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/apps/tutorials/cuda/01_GameOfLife_kernels.h b/apps/tutorials/cuda/01_GameOfLife_kernels.h
index 8ade238ab..11f5eeba2 100644
--- a/apps/tutorials/cuda/01_GameOfLife_kernels.h
+++ b/apps/tutorials/cuda/01_GameOfLife_kernels.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <iostream>
 
 #include "cuda/FieldAccessor.h"
diff --git a/src/blockforest/loadbalancing/DynamicParMetis.h b/src/blockforest/loadbalancing/DynamicParMetis.h
index a39bc7c76..1fa7667ee 100644
--- a/src/blockforest/loadbalancing/DynamicParMetis.h
+++ b/src/blockforest/loadbalancing/DynamicParMetis.h
@@ -19,6 +19,8 @@
 //
 //======================================================================================================================
 
+#pragma once
+
 #include "blockforest/PhantomBlockForest.h"
 
 #include "core/DataTypes.h"
diff --git a/src/blockforest/loadbalancing/StaticParMetis.h b/src/blockforest/loadbalancing/StaticParMetis.h
index deb0a41b6..85012654d 100644
--- a/src/blockforest/loadbalancing/StaticParMetis.h
+++ b/src/blockforest/loadbalancing/StaticParMetis.h
@@ -19,6 +19,8 @@
 //
 //======================================================================================================================
 
+#pragma once
+
 #include "blockforest/SetupBlockForest.h"
 
 #include "core/DataTypes.h"
@@ -66,4 +68,4 @@ protected:
 
 
 } // namespace blockforest
-} // namespace walberla
\ No newline at end of file
+} // namespace walberla
diff --git a/src/core/load_balancing/MetisWrapper.h b/src/core/load_balancing/MetisWrapper.h
index 3b4ecbfcd..042d1f629 100644
--- a/src/core/load_balancing/MetisWrapper.h
+++ b/src/core/load_balancing/MetisWrapper.h
@@ -19,6 +19,8 @@
 //
 //======================================================================================================================
 
+#pragma once
+
 #include "core/DataTypes.h"
 #include "core/mpi/MPIWrapper.h"
 
@@ -69,4 +71,4 @@ extern const int METIS_OPTION_GTYPE;
 extern const int METIS_OPTION_UBVEC;
 
 } // namespace core
-} // namespace walberla
\ No newline at end of file
+} // namespace walberla
diff --git a/src/core/load_balancing/ParMetisWrapper.h b/src/core/load_balancing/ParMetisWrapper.h
index 09a7601e8..cc3b9a312 100644
--- a/src/core/load_balancing/ParMetisWrapper.h
+++ b/src/core/load_balancing/ParMetisWrapper.h
@@ -19,6 +19,8 @@
 //
 //======================================================================================================================
 
+#pragma once
+
 #include "MetisWrapper.h"
 
 #include "core/DataTypes.h"
@@ -52,4 +54,4 @@ int ParMETIS_V3_RefineKway(
    int64_t *part, MPI_Comm *comm );
 
 } // namespace core
-} // namespace walberla
\ No newline at end of file
+} // namespace walberla
-- 
GitLab