From ded400ff7e96d696436efe4491f2406ef80d4455 Mon Sep 17 00:00:00 2001
From: renchao_lu <renchao.lu@gmail.com>
Date: Sun, 25 Jul 2021 00:28:57 +0200
Subject: [PATCH] fix pre-commit checking.

---
 MaterialLib/MPL/CreateProperty.cpp            |  8 ++++---
 MaterialLib/MPL/Properties/CreateProperties.h |  2 +-
 MaterialLib/MPL/Properties/Properties.h       |  2 +-
 .../ComponentTransportFEM.h                   | 21 +++++++++++--------
 4 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/MaterialLib/MPL/CreateProperty.cpp b/MaterialLib/MPL/CreateProperty.cpp
index 80928ee14e3..47e9f9af2fb 100644
--- a/MaterialLib/MPL/CreateProperty.cpp
+++ b/MaterialLib/MPL/CreateProperty.cpp
@@ -81,10 +81,11 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
         return createDupuitPermeability(config, parameters);
     }
 
-    if (boost::iequals(property_type, "EffectiveThermalConductivityPorosityMixing"))
+    if (boost::iequals(property_type,
+                       "EffectiveThermalConductivityPorosityMixing"))
     {
         return createEffectiveThermalConductivityPorosityMixing(
-                geometry_dimension, config, local_coordinate_system);
+            geometry_dimension, config, local_coordinate_system);
     }
 
     if (boost::iequals(property_type, "IdealGasLaw"))
@@ -109,7 +110,8 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
         return createEmbeddedFracturePermeability(geometry_dimension, config);
     }
 
-    if (boost::iequals(property_type, "OrthotropicEmbeddedFracturePermeability"))
+    if (boost::iequals(property_type,
+                       "OrthotropicEmbeddedFracturePermeability"))
     {
         return createOrthotropicEmbeddedFracturePermeability(
             geometry_dimension, config, parameters);
diff --git a/MaterialLib/MPL/Properties/CreateProperties.h b/MaterialLib/MPL/Properties/CreateProperties.h
index 65dccd0d87c..312a4e26493 100644
--- a/MaterialLib/MPL/Properties/CreateProperties.h
+++ b/MaterialLib/MPL/Properties/CreateProperties.h
@@ -37,8 +37,8 @@
 #include "CreatePermeabilityMohrCoulombFailureIndexModel.h"
 #include "CreatePermeabilityOrthotropicPowerLaw.h"
 #include "CreatePorosityFromMassBalance.h"
-#include "CreateSaturationDependentThermalConductivity.h"
 #include "CreateSaturationDependentSwelling.h"
+#include "CreateSaturationDependentThermalConductivity.h"
 #include "CreateStrainDependentPermeability.h"
 #include "CreateTransportPorosityFromMassBalance.h"
 #include "Density/CreateWaterVapourDensity.h"
diff --git a/MaterialLib/MPL/Properties/Properties.h b/MaterialLib/MPL/Properties/Properties.h
index 4126fb95e0e..154a191536d 100644
--- a/MaterialLib/MPL/Properties/Properties.h
+++ b/MaterialLib/MPL/Properties/Properties.h
@@ -42,8 +42,8 @@
 #include "RelativePermeability/RelPermUdell.h"
 #include "RelativePermeability/RelPermUdellNonwettingPhase.h"
 #include "RelativePermeability/RelPermVanGenuchten.h"
-#include "SaturationDependentThermalConductivity.h"
 #include "SaturationDependentSwelling.h"
+#include "SaturationDependentThermalConductivity.h"
 #include "ThermalConductivity/SoilThermalConductivitySomerton.h"
 #include "TransportPorosityFromMassBalance.h"
 #include "VapourDiffusion/VapourDiffusionFEBEX.h"
diff --git a/ProcessLib/ComponentTransport/ComponentTransportFEM.h b/ProcessLib/ComponentTransport/ComponentTransportFEM.h
index d90de33aadf..b842ab88035 100644
--- a/ProcessLib/ComponentTransport/ComponentTransportFEM.h
+++ b/ProcessLib/ComponentTransport/ComponentTransportFEM.h
@@ -43,7 +43,8 @@ struct IntegrationPointData final
                          GlobalDimNodalMatrixType const& dNdx_,
                          double const& integration_weight_)
         : N(N_), dNdx(dNdx_), integration_weight(integration_weight_)
-    {}
+    {
+    }
 
     void pushBackState() { porosity_prev = porosity; }
 
@@ -236,10 +237,12 @@ public:
             _integration_method.getNumberOfPoints();
         for (unsigned ip = 0; ip < n_integration_points; ip++)
         {
-            _ip_data[ip].chemical_system_id = chemical_system_index_map.empty()
-                                     ? 0
-                                     : chemical_system_index_map.back() + 1;
-            chemical_system_index_map.push_back(_ip_data[ip].chemical_system_id);
+            _ip_data[ip].chemical_system_id =
+                chemical_system_index_map.empty()
+                    ? 0
+                    : chemical_system_index_map.back() + 1;
+            chemical_system_index_map.push_back(
+                _ip_data[ip].chemical_system_id);
         }
     }
 
@@ -679,8 +682,8 @@ public:
                               .template value<double>(vars, vars_prev, pos, t,
                                                       dt);
 
-                vars[static_cast<int>(MaterialPropertyLib::Variable::porosity)] =
-                        porosity;
+                vars[static_cast<int>(
+                    MaterialPropertyLib::Variable::porosity)] = porosity;
             }
 
             // Use the fluid density model to compute the density
@@ -809,8 +812,8 @@ public:
                               .template value<double>(vars, vars_prev, pos, t,
                                                       dt);
 
-                vars[static_cast<int>(MaterialPropertyLib::Variable::porosity)] =
-                        porosity;
+                vars[static_cast<int>(
+                    MaterialPropertyLib::Variable::porosity)] = porosity;
             }
 
             auto const& retardation_factor =
-- 
GitLab