From 75bfc9831ad378ca739b9c0cc3f8630a14f8d881 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Fri, 18 Feb 2022 01:52:06 +0100 Subject: [PATCH] clang-format --- Applications/FileIO/FEFLOW/FEFLOWMeshInterface.cpp | 4 ++-- Applications/InSituLib/Adaptor.cpp | 3 ++- NumLib/Fem/Integration/IntegrationMethodRegistry.cpp | 2 +- Tests/MaterialLib/TestMPLIdealGasLawBinaryMixture.cpp | 4 +--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Applications/FileIO/FEFLOW/FEFLOWMeshInterface.cpp b/Applications/FileIO/FEFLOW/FEFLOWMeshInterface.cpp index fa7cb829c9d..476d873bc52 100644 --- a/Applications/FileIO/FEFLOW/FEFLOWMeshInterface.cpp +++ b/Applications/FileIO/FEFLOW/FEFLOWMeshInterface.cpp @@ -232,8 +232,8 @@ MeshLib::Mesh* FEFLOWMeshInterface::readFEFLOWFile(const std::string& filename) else { opt_material_ids->resize(mesh->getNumberOfElements()); - setMaterialIDs(fem_class, fem_dim, lines, vec_elementsets, - vec_elements, *opt_material_ids); + setMaterialIDs(fem_class, fem_dim, lines, vec_elementsets, vec_elements, + *opt_material_ids); } if (isXZplane) diff --git a/Applications/InSituLib/Adaptor.cpp b/Applications/InSituLib/Adaptor.cpp index f2d26c8dbd7..84d636ff5ce 100644 --- a/Applications/InSituLib/Adaptor.cpp +++ b/Applications/InSituLib/Adaptor.cpp @@ -40,7 +40,8 @@ void Initialize(BaseLib::ConfigTree const& scripts_config, { auto scriptPath = //! \ogs_file_param{prj__insitu__scripts__script__name} - std::filesystem::path(script_config.getConfigParameter<std::string>("name")); + std::filesystem::path( + script_config.getConfigParameter<std::string>("name")); if (scriptPath.is_relative()) { scriptPath = std::filesystem::path(path) / scriptPath; diff --git a/NumLib/Fem/Integration/IntegrationMethodRegistry.cpp b/NumLib/Fem/Integration/IntegrationMethodRegistry.cpp index 3139233a168..b09b7a80688 100644 --- a/NumLib/Fem/Integration/IntegrationMethodRegistry.cpp +++ b/NumLib/Fem/Integration/IntegrationMethodRegistry.cpp @@ -213,4 +213,4 @@ GenericIntegrationMethod const& getIntegrationMethod( "No integration methods are available for mesh elements of type {}", mesh_element_type.name()); } -} // namespace NumLib +} // namespace NumLib::IntegrationMethodRegistry diff --git a/Tests/MaterialLib/TestMPLIdealGasLawBinaryMixture.cpp b/Tests/MaterialLib/TestMPLIdealGasLawBinaryMixture.cpp index 6f76303fbda..09217b8a7ae 100644 --- a/Tests/MaterialLib/TestMPLIdealGasLawBinaryMixture.cpp +++ b/Tests/MaterialLib/TestMPLIdealGasLawBinaryMixture.cpp @@ -146,9 +146,7 @@ TEST(MaterialPropertyLib, IdealGasLawBinaryMixture) // Check derivatives via central differences auto central_difference = [&](double plus, double minus, double eps) - { - return (plus - minus) / (2 * eps); - }; + { return (plus - minus) / (2 * eps); }; // Perturbation of gas pressure auto const eps_pGR = 10.; -- GitLab