|
| OpVolume (const std::string &field_name, Vec vol) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntitiesFieldData::EntData &data) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data) |
|
| OpVolume (const std::string &field_name) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntitiesFieldData::EntData &data) |
|
◆ OpVolume() [1/2]
OpVolume::OpVolume |
( |
const std::string & | field_name, |
|
|
Vec | vol ) |
|
inline |
◆ OpVolume() [2/2]
OpVolume::OpVolume |
( |
const std::string & | field_name | ) |
|
|
inline |
◆ doWork() [1/3]
Definition at line 41 of file simple_interface.cpp.
44 {
46
48 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
◆ doWork() [2/3]
- Examples
- hello_world.cpp, and simple_interface.cpp.
Definition at line 23 of file simple_interface.cpp.
24 {
25
27 if (type != MBVERTEX)
29 const int nb_int_pts = getGaussPts().size2();
30
31 auto t_w = getFTensor0IntegrationWeight();
32 double v = getMeasure();
33 double vol = 0;
34 for (int gg = 0; gg != nb_int_pts; gg++) {
36 ++t_w;
37 }
38 CHKERR VecSetValue(
vOl, 0, vol, ADD_VALUES);
40 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
const double v
phase velocity of light in medium (cm/ns)
◆ doWork() [3/3]
Definition at line 69 of file hello_world.cpp.
70 {
72 if (type == MBVERTEX) {
73 MOFEM_LOG(
"SYNC", Sev::inform) <<
"Hello Operator OpVolume:"
74 << " volume " << getVolume();
75 }
77 }
#define MOFEM_LOG(channel, severity)
Log.
#define HelloFunctionBegin
◆ vOl
The documentation for this struct was generated from the following files: