No Matches
Public Member Functions | Public Attributes | List of all members
OpElasticTools::OpSetUnSetRowData Struct Reference

#include <users_modules/multifield_plasticity/src/ElasticOperators.hpp>

Inheritance diagram for OpElasticTools::OpSetUnSetRowData:
Collaboration diagram for OpElasticTools::OpSetUnSetRowData:

Public Member Functions

 OpSetUnSetRowData (std::string field_name, bool yes_set, boost::shared_ptr< CommonData > common_data_ptr)
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)

Public Attributes

bool yesSet
boost::shared_ptr< CommonDatacommonDataPtr

Detailed Description

Definition at line 1073 of file ElasticOperators.hpp.

Constructor & Destructor Documentation

◆ OpSetUnSetRowData()

OpElasticTools::OpSetUnSetRowData::OpSetUnSetRowData ( std::string  field_name,
bool  yes_set,
boost::shared_ptr< CommonData common_data_ptr 

Definition at line 1074 of file ElasticOperators.hpp.

1076 : ForcesAndSourcesCore::UserDataOperator(
1077 field_name, ForcesAndSourcesCore::UserDataOperator::OPROW),
1078 yesSet(yes_set), commonDataPtr(common_data_ptr) {}
constexpr auto field_name
boost::shared_ptr< CommonData > commonDataPtr

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpElasticTools::OpSetUnSetRowData::doWork ( int  side,
EntityType  type,
EntData data 

Definition at line 1079 of file ElasticOperators.hpp.

1079 {
1082 if (!data.getIndices().empty())
1083 if (auto e_ptr = data.getFieldEntities()[0])
1084 if (auto stored_data_ptr =
1085 e_ptr->getSharedStoragePtr<EssentialBcStorage>()) {
1086 if (yesSet) {
1087 commonDataPtr->rowIndices = data.getIndices();
1088 data.getIndices() = stored_data_ptr->entityIndices;
1089 } else {
1090 data.getIndices() = commonDataPtr->rowIndices;
1091 }
1092 }
1095 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
const VectorFieldEntities & getFieldEntities() const
get field entities
const VectorInt & getIndices() const
Get global indices of dofs on entity.

Member Data Documentation

◆ commonDataPtr

boost::shared_ptr<CommonData> OpElasticTools::OpSetUnSetRowData::commonDataPtr

Definition at line 1099 of file ElasticOperators.hpp.

◆ yesSet

bool OpElasticTools::OpSetUnSetRowData::yesSet

Definition at line 1098 of file ElasticOperators.hpp.

The documentation for this struct was generated from the following file: