From 6604362eda1180e38d9c30ed714c8a1019eacf0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Fri, 22 Mar 2024 10:00:46 +0100 Subject: [PATCH] Partially revert --- .../custom_workflows/dgeoflow.cpp | 2 ++ .../processes/apply_constant_scalarvalue_process.h | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/applications/GeoMechanicsApplication/custom_workflows/dgeoflow.cpp b/applications/GeoMechanicsApplication/custom_workflows/dgeoflow.cpp index ba8bcc46a522..dbc7c4350839 100644 --- a/applications/GeoMechanicsApplication/custom_workflows/dgeoflow.cpp +++ b/applications/GeoMechanicsApplication/custom_workflows/dgeoflow.cpp @@ -34,6 +34,8 @@ class GeoFlowApplyConstantScalarValueProcess : public Kratos::ApplyConstantScala } bool hasWaterPressure() const { return mVariableName == "WATER_PRESSURE"; } + + Kratos::ModelPart& GetModelPart() { return mrModelPart; } }; class GeoFlowApplyConstantHydrostaticPressureProcess : public Kratos::ApplyConstantHydrostaticPressureProcess diff --git a/kratos/processes/apply_constant_scalarvalue_process.h b/kratos/processes/apply_constant_scalarvalue_process.h index d26f7d84abfa..5dd6b5ebf33c 100644 --- a/kratos/processes/apply_constant_scalarvalue_process.h +++ b/kratos/processes/apply_constant_scalarvalue_process.h @@ -192,20 +192,6 @@ class KRATOS_API(KRATOS_CORE) ApplyConstantScalarValueProcess bool mBoolValue = false; /// Boolean value. std::size_t mMeshId = 0; /// Mesh ID. - ///@} - ///@name Protected Access - ///@{ - - /** - * @brief GetModelPart returns the reference to the ModelPart. - * @details This function provides access to the ModelPart associated with the current object. - * @return Reference to the ModelPart. - */ - ModelPart& GetModelPart() - { - return mrModelPart; - } - ///@} private: ///@name Private Operations