Skip to content

Commit

Permalink
Moving to protected access
Browse files Browse the repository at this point in the history
  • Loading branch information
loumalouomega authored Mar 22, 2024
1 parent f9154df commit 13380dd
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions kratos/processes/apply_constant_scalarvalue_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,6 @@ class KRATOS_API(KRATOS_CORE) ApplyConstantScalarValueProcess
///@name 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;
}

///@}
///@name Inquiry
///@{
Expand Down Expand Up @@ -192,16 +182,33 @@ class KRATOS_API(KRATOS_CORE) ApplyConstantScalarValueProcess

///@}
protected:
///@name Protected Member Variables
///@{

ModelPart& mrModelPart;
std::string mVariableName;
double mDoubleValue = 0.0;
int mIntValue = 0;
bool mBoolValue = false;
std::size_t mMeshId = 0;
ModelPart& mrModelPart; /// Reference to the model part.
std::string mVariableName; /// Name of the variable.
double mDoubleValue = 0.0; /// Double value.
int mIntValue = 0; /// Integer value.
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 Static Member Variables
///@name Private Operations
///@{

/**
Expand Down

0 comments on commit 13380dd

Please sign in to comment.