v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OpRow Struct Reference
Inheritance diagram for OpRow:
[legend]
Collaboration diagram for OpRow:
[legend]

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 22 of file hello_world.cpp.

Constructor & Destructor Documentation

◆ OpRow()

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

Definition at line 23 of file hello_world.cpp.

24 : ForcesAndSourcesCore::UserDataOperator(field_name, field_name, OPROW) {}
constexpr auto field_name

Member Function Documentation

◆ doWork()

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

Definition at line 25 of file hello_world.cpp.

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