v0.13.0
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 39 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpRow()

OpRow::OpRow ( const std::string &  field_name)

Definition at line 40 of file hello_world.cpp.

41  : ForcesAndSourcesCore::UserDataOperator(field_name, field_name, OPROW) {}
ForcesAndSourcesCore::UserDataOperator UserDataOperator

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpRow::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)

Definition at line 42 of file hello_world.cpp.

43  {
45  if (type == MBVERTEX) {
46  // get number of evaluated element in the loop
47  MOFEM_LOG("SYNC", Sev::inform) << "**** " << getNinTheLoop() << " ****";
48  MOFEM_LOG("SYNC", Sev::inform) << "**** Operators ****";
49  }
50  MOFEM_LOG("SYNC", Sev::inform)
51  << "Hello Operator OpRow:"
52  << " field name " << rowFieldName << " side " << side << " type "
53  << type_name[type] << " nb dofs on entity " << data.getIndices().size();
55  }
#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: