From 36b9c2f38a84d047aff96d5225534872f83240bd Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Thu, 4 Jul 2019 16:04:00 +0200 Subject: [PATCH] added missing include guards --- src/core/debug/OperatorCheck.h | 4 +++- src/core/timing/TimingJSON.h | 4 +++- src/cuda/ExecutionTreeSweepGPU.h | 2 ++ src/lbm/SuViscoelasticity.h | 1 + src/mesh/QHull.h | 4 +++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/core/debug/OperatorCheck.h b/src/core/debug/OperatorCheck.h index a9b379297..49bce7661 100644 --- a/src/core/debug/OperatorCheck.h +++ b/src/core/debug/OperatorCheck.h @@ -20,6 +20,8 @@ // //====================================================================================================================== +#pragma once + #include <algorithm> #include <functional> #include <iostream> @@ -89,4 +91,4 @@ template<class X, class Y> using has_right_shift = op_valid<X, Y, notstd::right_ } // namespace debug -} // namespace walberla \ No newline at end of file +} // namespace walberla diff --git a/src/core/timing/TimingJSON.h b/src/core/timing/TimingJSON.h index b6826f367..437fe8fe2 100644 --- a/src/core/timing/TimingJSON.h +++ b/src/core/timing/TimingJSON.h @@ -19,6 +19,8 @@ // //====================================================================================================================== +#pragma once + #include "core/extern/json.hpp" #include "core/timing/Timer.h" #include "core/timing/TimingNode.h" @@ -69,4 +71,4 @@ void to_json( nlohmann::json& j, const TimingTree< TP >& tt ) } -} \ No newline at end of file +} diff --git a/src/cuda/ExecutionTreeSweepGPU.h b/src/cuda/ExecutionTreeSweepGPU.h index e5ad3d2a6..6f97277c4 100644 --- a/src/cuda/ExecutionTreeSweepGPU.h +++ b/src/cuda/ExecutionTreeSweepGPU.h @@ -19,6 +19,8 @@ // //============================================================================================================================================================== +#pragma once + #include "domain_decomposition/IBlock.h" #include "executiontree/ExecutionTree.h" #include "ExecutionTreeGPU.h" diff --git a/src/lbm/SuViscoelasticity.h b/src/lbm/SuViscoelasticity.h index 493a3fa49..e1bd26a46 100644 --- a/src/lbm/SuViscoelasticity.h +++ b/src/lbm/SuViscoelasticity.h @@ -20,6 +20,7 @@ // //====================================================================================================================== +#pragma once #include "blockforest/communication/UniformBufferedScheme.h" #include "core/math/Matrix3.h" diff --git a/src/mesh/QHull.h b/src/mesh/QHull.h index 8789826bd..81c4d0b09 100644 --- a/src/mesh/QHull.h +++ b/src/mesh/QHull.h @@ -19,6 +19,8 @@ // //====================================================================================================================== +#pragma once + #include "core/DataTypes.h" #include "core/math/Vector3.h" @@ -515,4 +517,4 @@ void QHull<MeshType>::initMesh() } } // namespace mesh -} // namespace walberla \ No newline at end of file +} // namespace walberla -- GitLab