From fee499c90a3500994d943a025a40e6a687238c41 Mon Sep 17 00:00:00 2001 From: Richard Faasse <56549273+rfaasse@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:48:41 +0100 Subject: [PATCH] Formatting using clang-format 19.1 (#12791) --- .../general_U_Pw_diff_order_condition.hpp | 2 +- .../custom_elements/steady_state_Pw_element.hpp | 3 +-- .../custom_elements/transient_Pw_element.hpp | 3 +-- .../tests/cpp_tests/test_dgeosettlement.cpp | 8 ++++---- .../tests/cpp_tests/test_time_stepping.cpp | 12 ++++++------ 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/applications/GeoMechanicsApplication/custom_conditions/general_U_Pw_diff_order_condition.hpp b/applications/GeoMechanicsApplication/custom_conditions/general_U_Pw_diff_order_condition.hpp index 4f5d534532a9..969d4d019b77 100644 --- a/applications/GeoMechanicsApplication/custom_conditions/general_U_Pw_diff_order_condition.hpp +++ b/applications/GeoMechanicsApplication/custom_conditions/general_U_Pw_diff_order_condition.hpp @@ -42,7 +42,7 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) GeneralUPwDiffOrderCondition : publi KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(GeneralUPwDiffOrderCondition); - GeneralUPwDiffOrderCondition() : GeneralUPwDiffOrderCondition(0, nullptr, nullptr){}; + GeneralUPwDiffOrderCondition() : GeneralUPwDiffOrderCondition(0, nullptr, nullptr) {}; GeneralUPwDiffOrderCondition(IndexType NewId, GeometryType::Pointer pGeometry) : GeneralUPwDiffOrderCondition(NewId, pGeometry, nullptr) diff --git a/applications/GeoMechanicsApplication/custom_elements/steady_state_Pw_element.hpp b/applications/GeoMechanicsApplication/custom_elements/steady_state_Pw_element.hpp index ce994beee9d4..af23d882729c 100644 --- a/applications/GeoMechanicsApplication/custom_elements/steady_state_Pw_element.hpp +++ b/applications/GeoMechanicsApplication/custom_elements/steady_state_Pw_element.hpp @@ -121,8 +121,7 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) SteadyStatePwElement : public Transi void load(Serializer& rSerializer) override{KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, Element)} // Assignment operator. - SteadyStatePwElement& - operator=(SteadyStatePwElement const& rOther); + SteadyStatePwElement& operator=(SteadyStatePwElement const& rOther); // Copy constructor. SteadyStatePwElement(SteadyStatePwElement const& rOther); diff --git a/applications/GeoMechanicsApplication/custom_elements/transient_Pw_element.hpp b/applications/GeoMechanicsApplication/custom_elements/transient_Pw_element.hpp index baddcafbf21f..602d9a7cc88e 100644 --- a/applications/GeoMechanicsApplication/custom_elements/transient_Pw_element.hpp +++ b/applications/GeoMechanicsApplication/custom_elements/transient_Pw_element.hpp @@ -166,8 +166,7 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) TransientPwElement : public UPwSmall void load(Serializer& rSerializer) override{KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, Element)} // Assignment operator. - TransientPwElement& - operator=(TransientPwElement const& rOther); + TransientPwElement& operator=(TransientPwElement const& rOther); // Copy constructor. TransientPwElement(TransientPwElement const& rOther); diff --git a/applications/GeoMechanicsApplication/tests/cpp_tests/test_dgeosettlement.cpp b/applications/GeoMechanicsApplication/tests/cpp_tests/test_dgeosettlement.cpp index cc94499c9f60..5e1c9a5c74e1 100644 --- a/applications/GeoMechanicsApplication/tests/cpp_tests/test_dgeosettlement.cpp +++ b/applications/GeoMechanicsApplication/tests/cpp_tests/test_dgeosettlement.cpp @@ -43,10 +43,10 @@ const std::string parameter_json_settings = R"( int RunStage(KratosGeoSettlement& rSettlement) { - return rSettlement.RunStage( - "", "", [](const char*) { /* kept empty as a stub method */ }, - [](const double) { /* kept empty as a stub method */ }, - [](const char*) { /* kept empty as a stub method */ }, []() { return false; }); + return rSettlement.RunStage("", "", [](const char*) { /* kept empty as a stub method */ }, + [](const double) { /* kept empty as a stub method */ }, + [](const char*) { /* kept empty as a stub method */ }, + []() { return false; }); } void ExpectNumberOfReadCallsIsEqualToOne(const KratosGeoSettlement& rSettlement) diff --git a/applications/GeoMechanicsApplication/tests/cpp_tests/test_time_stepping.cpp b/applications/GeoMechanicsApplication/tests/cpp_tests/test_time_stepping.cpp index 4eeb1fd3a039..a4eaf1a63d46 100644 --- a/applications/GeoMechanicsApplication/tests/cpp_tests/test_time_stepping.cpp +++ b/applications/GeoMechanicsApplication/tests/cpp_tests/test_time_stepping.cpp @@ -74,22 +74,22 @@ class DummyStrategyWrapper : public StrategyWrapper // intentionally empty } - void CloneTimeStep() override{ + void CloneTimeStep() override { // intentionally empty }; - void RestorePositionsAndDOFVectorToStartOfStep() override{ + void RestorePositionsAndDOFVectorToStartOfStep() override { // intentionally empty }; - void SaveTotalDisplacementFieldAtStartOfTimeLoop() override{ + void SaveTotalDisplacementFieldAtStartOfTimeLoop() override { // intentionally empty }; - void AccumulateTotalDisplacementField() override{ + void AccumulateTotalDisplacementField() override { // intentionally empty }; - void ComputeIncrementalDisplacementField() override{ + void ComputeIncrementalDisplacementField() override { // intentionally empty }; - void OutputProcess() override{ + void OutputProcess() override { // intentionally empty };