v0.13.1
Public Member Functions | List of all members
OpRow Struct Reference

Inherits ForcesAndSourcesCore::UserDataOperator.

Public Member Functions

 OpRow (const std::string &field_name)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 

Detailed Description

Examples
hello_world.cpp.

Definition at line 24 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpRow()

OpRow::OpRow ( const std::string &  field_name)
Examples
hello_world.cpp.

Definition at line 25 of file hello_world.cpp.

ForcesAndSourcesCore::UserDataOperator UserDataOperator
constexpr auto field_name

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpRow::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
Examples
hello_world.cpp.

Definition at line 27 of file hello_world.cpp.

28 {
30 if (type == MBVERTEX) {
31 // get number of evaluated element in the loop
32 MOFEM_LOG("SYNC", Sev::inform) << "**** " << getNinTheLoop() << " ****";
33 MOFEM_LOG("SYNC", Sev::inform) << "**** Operators ****";
34 }
35 MOFEM_LOG("SYNC", Sev::inform)
36 << "Hello Operator OpRow:"
37 << " field name " << rowFieldName << " side " << side << " type "
38 << type_name[type] << " nb dofs on entity " << data.getIndices().size();
40 }
#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: