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