From 2a9729fdb0392c514a62e79ee37acd7facf9568e Mon Sep 17 00:00:00 2001
From: Norihiro Watanabe <norihiro.watanabe@ufz.de>
Date: Tue, 11 Oct 2016 13:04:15 +0200
Subject: [PATCH] [PCS/LIE] replace the pragma once with include guard

---
 ProcessLib/SmallDeformationWithLIE/Common/FractureProperty.h | 5 ++++-
 ProcessLib/SmallDeformationWithLIE/Common/HMatrixUtils.h     | 4 +++-
 ProcessLib/SmallDeformationWithLIE/Common/LevelSetFunction.h | 5 ++++-
 ProcessLib/SmallDeformationWithLIE/Common/MeshUtils.h        | 5 ++++-
 ProcessLib/SmallDeformationWithLIE/Common/Utils.h            | 5 ++++-
 5 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/ProcessLib/SmallDeformationWithLIE/Common/FractureProperty.h b/ProcessLib/SmallDeformationWithLIE/Common/FractureProperty.h
index 7bc2a6e61d0..e6295eed80e 100644
--- a/ProcessLib/SmallDeformationWithLIE/Common/FractureProperty.h
+++ b/ProcessLib/SmallDeformationWithLIE/Common/FractureProperty.h
@@ -7,7 +7,8 @@
  *
  */
 
-#pragma once
+#ifndef PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_FRACTUREPROPERTY_H_
+#define PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_FRACTUREPROPERTY_H_
 
 #include <Eigen/Eigen>
 
@@ -52,3 +53,5 @@ inline void setFractureProperty(unsigned dim, MeshLib::Element const& e,
 
 }  // namespace SmallDeformationWithLIE
 }  // namespace ProcessLib
+
+#endif // PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_FRACTUREPROPERTY_H_
diff --git a/ProcessLib/SmallDeformationWithLIE/Common/HMatrixUtils.h b/ProcessLib/SmallDeformationWithLIE/Common/HMatrixUtils.h
index cb6ca64e5eb..7576cf55b1b 100644
--- a/ProcessLib/SmallDeformationWithLIE/Common/HMatrixUtils.h
+++ b/ProcessLib/SmallDeformationWithLIE/Common/HMatrixUtils.h
@@ -7,7 +7,8 @@
  *
  */
 
-#pragma once
+#ifndef PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_HMATRIXPOLICYTYPE_H_
+#define PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_HMATRIXPOLICYTYPE_H_
 
 #include "NumLib/Fem/ShapeMatrixPolicy.h"
 
@@ -62,3 +63,4 @@ void computeHMatrix(N_Type const& N, HMatrixType& H)
 
 }  // namespace ProcessLib
 
+#endif // PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_HMATRIXPOLICYTYPE_H_
diff --git a/ProcessLib/SmallDeformationWithLIE/Common/LevelSetFunction.h b/ProcessLib/SmallDeformationWithLIE/Common/LevelSetFunction.h
index b18d20c7bc2..ad8abf66698 100644
--- a/ProcessLib/SmallDeformationWithLIE/Common/LevelSetFunction.h
+++ b/ProcessLib/SmallDeformationWithLIE/Common/LevelSetFunction.h
@@ -6,7 +6,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
-#pragma once
+#ifndef PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_LEVELSETFUNCTION_H_
+#define PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_LEVELSETFUNCTION_H_
 
 namespace ProcessLib
 {
@@ -24,3 +25,5 @@ double calculateLevelSetFunction(
 
 } // SmallDeformationWithLIE
 } // ProcessLib
+
+#endif // PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_LEVELSETFUNCTION_H_
diff --git a/ProcessLib/SmallDeformationWithLIE/Common/MeshUtils.h b/ProcessLib/SmallDeformationWithLIE/Common/MeshUtils.h
index 0a8f267ffe2..7667c01613f 100644
--- a/ProcessLib/SmallDeformationWithLIE/Common/MeshUtils.h
+++ b/ProcessLib/SmallDeformationWithLIE/Common/MeshUtils.h
@@ -6,7 +6,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
-#pragma once
+#ifndef PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_MESHUTILS_H_
+#define PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_MESHUTILS_H_
 
 #include <vector>
 
@@ -39,3 +40,5 @@ void getFractureMatrixDataInMesh(
 
 }  // namespace SmallDeformationWithLIE
 }  // namespace ProcessLib
+
+#endif // PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_MESHUTILS_H_
diff --git a/ProcessLib/SmallDeformationWithLIE/Common/Utils.h b/ProcessLib/SmallDeformationWithLIE/Common/Utils.h
index 15a6121e8cd..933809a4159 100644
--- a/ProcessLib/SmallDeformationWithLIE/Common/Utils.h
+++ b/ProcessLib/SmallDeformationWithLIE/Common/Utils.h
@@ -6,7 +6,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
-#pragma once
+#ifndef PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_UTILS_H_
+#define PROCESSLIB_SMALLDEFORMATION_WITH_LIE_COMMON_UTILS_H_
 
 #include <Eigen/Eigen>
 
@@ -40,3 +41,5 @@ MathLib::Point3d computePhysicalCoordinates(MeshLib::Element const&e, Eigen::Mat
 
 }  // namespace SmallDeformationWithLIE
 }  // namespace ProcessLib
+
+#endif
-- 
GitLab