v0.13.0
Public Member Functions | List of all members
OpRowCol Struct Reference

Inherits ForcesAndSourcesCore::UserDataOperator.

Public Member Functions

 OpRowCol (const std::string row_field, const std::string col_field, const bool symm)
 
MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Detailed Description

Examples
hello_world.cpp.

Definition at line 58 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpRowCol()

OpRowCol::OpRowCol ( const std::string  row_field,
const std::string  col_field,
const bool  symm 
)

Definition at line 59 of file hello_world.cpp.

61  : ForcesAndSourcesCore::UserDataOperator(row_field, col_field, OPROWCOL,
62  symm) {}
ForcesAndSourcesCore::UserDataOperator UserDataOperator

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpRowCol::doWork ( int  row_side,
int  col_side,
EntityType  row_type,
EntityType  col_type,
EntitiesFieldData::EntData row_data,
EntitiesFieldData::EntData col_data 
)

Definition at line 63 of file hello_world.cpp.

66  {
68  MOFEM_LOG("SYNC", Sev::inform)
69  << "Hello Operator OpRowCol:"
70  << " row field name " << rowFieldName << " row side " << row_side
71  << " row type " << type_name[row_type] << " nb dofs on row entity"
72  << row_data.getIndices().size() << " : "
73  << " col field name " << colFieldName << " col side " << col_side
74  << " col type " << type_name[col_type] << " nb dofs on col entity"
75  << col_data.getIndices().size();
77  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:311
#define HelloFunctionBegin
Definition: hello_world.cpp:33
static map< EntityType, std::string > type_name
Definition: hello_world.cpp:31
const VectorInt & getIndices() const
Get global indices of dofs on entity.

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