From 36c58abe307abaab450c2f23c0735181a3e21fa9 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Thu, 29 Jul 2021 11:31:25 +0200 Subject: [PATCH] [PL/THM] clang-format. --- .../CreateThermoHydroMechanicsProcess.cpp | 6 ++---- .../CreateThermoHydroMechanicsProcess.h | 2 +- .../ThermoHydroMechanics/LocalDataInitializer.h | 6 ++++-- .../ThermoHydroMechanicsProcess.cpp | 3 ++- .../ThermoHydroMechanicsProcessData.h | 11 ++++------- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.cpp b/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.cpp index 3d949614316..cc363c422b5 100644 --- a/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.cpp +++ b/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.cpp @@ -157,10 +157,8 @@ std::unique_ptr<Process> createThermoHydroMechanicsProcess( &mesh); ThermoHydroMechanicsProcessData<DisplacementDim> process_data{ - materialIDs(mesh), - std::move(media_map), - std::move(solid_constitutive_relations), - initial_stress, + materialIDs(mesh), std::move(media_map), + std::move(solid_constitutive_relations), initial_stress, specific_body_force}; SecondaryVariableCollection secondary_variables; diff --git a/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.h b/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.h index 80e074aea83..2f327f61148 100644 --- a/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.h +++ b/ProcessLib/ThermoHydroMechanics/CreateThermoHydroMechanicsProcess.h @@ -35,7 +35,7 @@ namespace ParameterLib { struct CoordinateSystem; struct ParameterBase; -} +} // namespace ParameterLib namespace ProcessLib { class AbstractJacobianAssembler; diff --git a/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h b/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h index e3c9dad66a4..d1ef042cfa4 100644 --- a/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h +++ b/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h @@ -340,7 +340,8 @@ private: { return [](MeshLib::Element const& e, std::size_t const local_matrix_size, - ConstructorArgs&&... args) { + ConstructorArgs&&... args) + { return LADataIntfPtr{new LAData<ShapeFunction, ShapeFunction>{ e, local_matrix_size, std::forward<ConstructorArgs>(args)...}}; @@ -352,7 +353,8 @@ private: typename NumLib::LowerDim<ShapeFunction>::type; return [](MeshLib::Element const& e, std::size_t const local_matrix_size, - ConstructorArgs&&... args) { + ConstructorArgs&&... args) + { return LADataIntfPtr{ new LAData<ShapeFunction, LowerOrderShapeFunction>{ e, local_matrix_size, diff --git a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp index f0f1b7f7fbe..4af3ac6f182 100644 --- a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp +++ b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp @@ -306,7 +306,8 @@ void ThermoHydroMechanicsProcess<DisplacementDim>:: _local_assemblers, pv.getActiveElementIDs(), dof_tables, t, dt, x, xdot, dxdot_dx, dx_dx, process_id, M, K, b, Jac); - auto copyRhs = [&](int const variable_id, auto& output_vector) { + auto copyRhs = [&](int const variable_id, auto& output_vector) + { if (_use_monolithic_scheme) { transformVariableFromGlobalVector(b, variable_id, dof_tables[0], diff --git a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcessData.h b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcessData.h index 62ebbfb827b..1ffa2129597 100644 --- a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcessData.h +++ b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcessData.h @@ -10,14 +10,12 @@ #pragma once -#include "ParameterLib/Parameter.h" - +#include <Eigen/Dense> #include <memory> #include <utility> -#include <Eigen/Dense> - #include "MaterialLib/MPL/MaterialSpatialDistributionMap.h" +#include "ParameterLib/Parameter.h" namespace MaterialLib { @@ -41,9 +39,8 @@ struct ThermoHydroMechanicsProcessData /// The constitutive relation for the mechanical part. /// \note Linear elasticity is the only supported one in the moment. - std::map< - int, - std::unique_ptr<MaterialLib::Solids::MechanicsBase<DisplacementDim>>> + std::map<int, std::unique_ptr< + MaterialLib::Solids::MechanicsBase<DisplacementDim>>> solid_materials; /// Optional, initial stress field. A symmetric tensor, short vector -- GitLab