v0.13.1
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 43 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpRowCol()

OpRowCol::OpRowCol ( const std::string  row_field,
const std::string  col_field,
const bool  symm 
)
Examples
hello_world.cpp.

Definition at line 44 of file hello_world.cpp.

46 : ForcesAndSourcesCore::UserDataOperator(row_field, col_field, OPROWCOL,
47 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 
)
Examples
hello_world.cpp.

Definition at line 48 of file hello_world.cpp.

51 {
53 MOFEM_LOG("SYNC", Sev::inform)
54 << "Hello Operator OpRowCol:"
55 << " row field name " << rowFieldName << " row side " << row_side
56 << " row type " << type_name[row_type] << " nb dofs on row entity"
57 << row_data.getIndices().size() << " : "
58 << " col field name " << colFieldName << " col side " << col_side
59 << " col type " << type_name[col_type] << " nb dofs on col entity"
60 << col_data.getIndices().size();
62 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:301
#define HelloFunctionBegin
Definition: hello_world.cpp:18
static map< EntityType, std::string > type_name
Definition: hello_world.cpp:16
const VectorInt & getIndices() const
Get global indices of dofs on entity.

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