v0.14.0 |
useful compiler derivatives and definitions More...
Go to the source code of this file.
Macros | |
#define | DEPRECATED |
#define | MYPCOMM_INDEX 0 |
default communicator number PCOMM More... | |
#define | MAX_CORE_TMP 1 |
maximal number of cores More... | |
#define | BITREFEDGES_SIZE 32 |
number refined edges More... | |
#define | BITREFLEVEL_SIZE 64 |
max number of refinements More... | |
#define | BITFIELDID_SIZE 32 |
max number of fields More... | |
#define | BITFEID_SIZE 32 |
max number of finite elements More... | |
#define | BITPROBLEMID_SIZE 32 |
max number of problems More... | |
#define | BITINTERFACEUID_SIZE 32 |
#define | MB_TYPE_WIDTH 4 |
#define | MB_ID_WIDTH (8 * sizeof(EntityHandle) - MB_TYPE_WIDTH) |
#define | MB_TYPE_MASK ((EntityHandle)0xF << MB_ID_WIDTH) |
#define | MB_START_ID ((EntityID)1) |
All entity id's currently start at 1. More... | |
#define | MB_END_ID ((EntityID)MB_ID_MASK) |
Last id is the complement of the MASK. More... | |
#define | MB_ID_MASK (~MB_TYPE_MASK) |
#define | MAX_DOFS_ON_ENTITY 512 |
Maximal number of DOFs on entity. More... | |
#define | MAX_PROCESSORS_NUMBER 1024 |
Maximal number of processors. More... | |
#define | DOF_UID_MASK (MAX_DOFS_ON_ENTITY - 1) |
Mask for DOF number on entity form UId. More... | |
#define | ENTITY_UID_MASK (~DOF_UID_MASK) |
#define | NOT_USED(x) ((void)(x)) |
#define | BARRIER_PCOMM_RANK_START(PCMB) |
set barrier start Run code in sequence, starting from process 0, and ends on last process. More... | |
#define | BARRIER_RANK_START(PCMB) |
#define | BARRIER_PCOMM_RANK_END(PCMB) |
set barrier start Run code in sequence, starting from process 0, and ends on last process. More... | |
#define | BARRIER_RANK_END(PCMB) |
#define | BARRIER_MOFEM_RANK_START(MOFEM) |
set barrier start Run code in sequence, starting from process 0, and ends on last process. More... | |
#define | BARRIER_MOFEM_RANK_END(MOFEM) |
set barrier start Run code in sequence, starting from process 0, and ends on last process. More... | |
#define | MoFEMFunctionBegin |
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions should be MoFEMFunctionReturn(0);. More... | |
#define | CATCH_ERRORS |
Catch errors. More... | |
#define | MoFEMFunctionReturn(a) |
Last executable line of each PETSc function used for error handling. Replaces return() More... | |
#define | MoFEMFunctionBeginHot PetscFunctionBeginHot |
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions should be MoFEMFunctionReturn(0); Use of this function allows for lighter profiling by default. More... | |
#define | MoFEMFunctionReturnHot(a) PetscFunctionReturn(a) |
Last executable line of each PETSc function used for error handling. Replaces return() More... | |
#define | CHKERRQ_PETSC(n) CHKERRQ(n) |
#define | CHKERRQ_MOAB(a) |
check error code of MoAB function More... | |
#define | CHKERRG(n) |
Check error code of MoFEM/MOAB/PETSc function. More... | |
#define | CHKERR MoFEM::ErrorChecker<__LINE__>() << |
Inline error check. More... | |
#define | MOAB_THROW(err) |
Check error code of MoAB function and throw MoFEM exception. More... | |
#define | THROW_MESSAGE(msg) |
Throw MoFEM exception. More... | |
#define | CHK_MOAB_THROW(err, msg) |
Check error code of MoAB function and throw MoFEM exception. More... | |
#define | CHK_THROW_MESSAGE(err, msg) |
Check and throw MoFEM exception. More... | |
#define | SSTR(x) toString(x) |
Convert number to string. More... | |
#define | TENSOR1_VEC_PTR(VEC) &VEC[0], &VEC[1], &VEC[2] |
#define | SYMMETRIC_TENSOR4_MAT_PTR(MAT) |
#define | TENSOR4_MAT_PTR(MAT) &MAT(0, 0), MAT.size2() |
#define | TENSOR2_MAT_PTR(MAT) |
#define | SYMMETRIC_TENSOR2_MAT_PTR(MAT) &MAT(0, 0), &MAT(0, 1), &MAT(0, 2), &MAT(0, 3), &MAT(0, 4), &MAT(0, 5) |
#define | SYMMETRIC_TENSOR2_VEC_PTR(VEC) &VEC[0], &VEC[1], &VEC[2], &VEC[3], &VEC[4], &VEC[5] |
Functions | |
DEPRECATED void | macro_is_deprecated_using_deprecated_function () |
Is used to indicate that macro is deprecated Do nothing just triggers error at the compilation. More... | |
Variables | |
const static char *const | MoFEMErrorCodesNames [] |
const static char *const | ApproximationBaseNames [] |
const static char *const | FieldSpaceNames [] |
const static char *const | FieldContinuityNames [] |
const static char *const | CoordinateTypesNames [] |
Coordinate system names. More... | |
const static char *const | CubitBCNames [] |
Names of types of sets and boundary conditions. More... | |
useful compiler derivatives and definitions
Definition in file definitions.h.
#define BARRIER_MOFEM_RANK_END | ( | MOFEM | ) |
set barrier start Run code in sequence, starting from process 0, and ends on last process.
It can be only used for testing. Do not use that function as a part of these code.
Definition at line 323 of file definitions.h.
#define BARRIER_MOFEM_RANK_START | ( | MOFEM | ) |
set barrier start Run code in sequence, starting from process 0, and ends on last process.
It can be only used for testing. Do not use that function as a part of these code.
Definition at line 310 of file definitions.h.
#define BARRIER_PCOMM_RANK_END | ( | PCMB | ) |
set barrier start Run code in sequence, starting from process 0, and ends on last process.
It can be only used for testing. Do not use that function as a part of these code.
Definition at line 286 of file definitions.h.
#define BARRIER_PCOMM_RANK_START | ( | PCMB | ) |
set barrier start Run code in sequence, starting from process 0, and ends on last process.
It can be only used for testing. Do not use that function as a part of these code.
Definition at line 264 of file definitions.h.
#define BARRIER_RANK_END | ( | PCMB | ) |
Definition at line 295 of file definitions.h.
#define BARRIER_RANK_START | ( | PCMB | ) |
Definition at line 272 of file definitions.h.
#define BITFEID_SIZE 32 |
max number of finite elements
Definition at line 234 of file definitions.h.
#define BITFIELDID_SIZE 32 |
max number of fields
Definition at line 233 of file definitions.h.
#define BITINTERFACEUID_SIZE 32 |
Definition at line 236 of file definitions.h.
#define BITPROBLEMID_SIZE 32 |
max number of problems
Definition at line 235 of file definitions.h.
#define BITREFEDGES_SIZE 32 |
number refined edges
Definition at line 231 of file definitions.h.
#define BITREFLEVEL_SIZE 64 |
max number of refinements
Definition at line 232 of file definitions.h.
#define CATCH_ERRORS |
Catch errors.
Usage in main functions
Definition at line 385 of file definitions.h.
#define CHK_MOAB_THROW | ( | err, | |
msg | |||
) |
Check error code of MoAB function and throw MoFEM exception.
err | MoABErrorCode |
msg | error message |
Definition at line 589 of file definitions.h.
#define CHK_THROW_MESSAGE | ( | err, | |
msg | |||
) |
Check and throw MoFEM exception.
err | error code |
msg | message |
Definition at line 609 of file definitions.h.
#define CHKERR MoFEM::ErrorChecker<__LINE__>() << |
Inline error check.
Definition at line 548 of file definitions.h.
#define CHKERRG | ( | n | ) |
Check error code of MoFEM/MOAB/PETSc function.
a | MoFEMErrorCode |
Definition at line 496 of file definitions.h.
#define CHKERRQ_MOAB | ( | a | ) |
check error code of MoAB function
a | MoABErrorCode |
Definition at line 467 of file definitions.h.
Definition at line 462 of file definitions.h.
#define DEPRECATED |
Definition at line 17 of file definitions.h.
#define DOF_UID_MASK (MAX_DOFS_ON_ENTITY - 1) |
Mask for DOF number on entity form UId.
Definition at line 251 of file definitions.h.
#define ENTITY_UID_MASK (~DOF_UID_MASK) |
Definition at line 253 of file definitions.h.
#define MAX_CORE_TMP 1 |
maximal number of cores
Definition at line 230 of file definitions.h.
#define MAX_DOFS_ON_ENTITY 512 |
Maximal number of DOFs on entity.
Definition at line 249 of file definitions.h.
#define MAX_PROCESSORS_NUMBER 1024 |
Maximal number of processors.
Definition at line 250 of file definitions.h.
#define MB_END_ID ((EntityID)MB_ID_MASK) |
Last id is the complement of the MASK.
Definition at line 245 of file definitions.h.
#define MB_ID_MASK (~MB_TYPE_MASK) |
Definition at line 247 of file definitions.h.
#define MB_ID_WIDTH (8 * sizeof(EntityHandle) - MB_TYPE_WIDTH) |
Definition at line 240 of file definitions.h.
#define MB_START_ID ((EntityID)1) |
All entity id's currently start at 1.
Definition at line 244 of file definitions.h.
#define MB_TYPE_MASK ((EntityHandle)0xF << MB_ID_WIDTH) |
Definition at line 241 of file definitions.h.
#define MB_TYPE_WIDTH 4 |
Definition at line 239 of file definitions.h.
#define MOAB_THROW | ( | err | ) |
Check error code of MoAB function and throw MoFEM exception.
err | MoABErrorCode |
Definition at line 554 of file definitions.h.
#define MoFEMFunctionBegin |
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions should be MoFEMFunctionReturn(0);.
\node Not collective
Definition at line 359 of file definitions.h.
#define MoFEMFunctionBeginHot PetscFunctionBeginHot |
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions should be MoFEMFunctionReturn(0); Use of this function allows for lighter profiling by default.
\node Not collective
Definition at line 453 of file definitions.h.
#define MoFEMFunctionReturn | ( | a | ) |
Last executable line of each PETSc function used for error handling. Replaces return()
a | error code |
Definition at line 429 of file definitions.h.
Last executable line of each PETSc function used for error handling. Replaces return()
a | error code |
Definition at line 460 of file definitions.h.
#define MYPCOMM_INDEX 0 |
default communicator number PCOMM
Definition at line 228 of file definitions.h.
#define NOT_USED | ( | x | ) | ((void)(x)) |
Definition at line 255 of file definitions.h.
#define SSTR | ( | x | ) | toString(x) |
#define SYMMETRIC_TENSOR2_MAT_PTR | ( | MAT | ) | &MAT(0, 0), &MAT(0, 1), &MAT(0, 2), &MAT(0, 3), &MAT(0, 4), &MAT(0, 5) |
Definition at line 637 of file definitions.h.
#define SYMMETRIC_TENSOR2_VEC_PTR | ( | VEC | ) | &VEC[0], &VEC[1], &VEC[2], &VEC[3], &VEC[4], &VEC[5] |
Definition at line 640 of file definitions.h.
#define SYMMETRIC_TENSOR4_MAT_PTR | ( | MAT | ) |
Definition at line 623 of file definitions.h.
#define TENSOR1_VEC_PTR | ( | VEC | ) | &VEC[0], &VEC[1], &VEC[2] |
Definition at line 621 of file definitions.h.
#define TENSOR2_MAT_PTR | ( | MAT | ) |
Definition at line 633 of file definitions.h.
#define TENSOR4_MAT_PTR | ( | MAT | ) | &MAT(0, 0), MAT.size2() |
Definition at line 631 of file definitions.h.
#define THROW_MESSAGE | ( | msg | ) |
Throw MoFEM exception.
msg | message |
Definition at line 574 of file definitions.h.
enum ByWhat |
Controls adjency multi_index container (e.g. BYROW is adjacenciecy by field on on rows), see MoFEM::FieldEntityEntFiniteElementAdjacencyMap
Enumerator | |
---|---|
BYROW | |
BYCOL | |
BYDATA | |
BYROWDATA | |
BYCOLDATA | |
BYROWCOL | |
BYALL |
Definition at line 143 of file definitions.h.
enum CoordinateTypes |
Coodinate system.
Enumerator | |
---|---|
CARTESIAN | |
POLAR | |
CYLINDRICAL | |
SPHERICAL | |
LAST_COORDINATE_SYSTEM |
Definition at line 127 of file definitions.h.
enum CubitBC |
Types of sets and boundary conditions.
Definition at line 157 of file definitions.h.
approximation base
Enumerator | |
---|---|
NOBASE | |
AINSWORTH_LEGENDRE_BASE | Ainsworth Cole (Legendre) approx. base [1]. |
AINSWORTH_LOBATTO_BASE | Like AINSWORTH_LEGENDRE_BASE but with Lobatto base instead Legendre [13] |
AINSWORTH_BERNSTEIN_BEZIER_BASE | |
DEMKOWICZ_JACOBI_BASE | Construction of base is by Demkowicz [29] |
USER_BASE | user implemented approximation base |
LASTBASE |
Definition at line 58 of file definitions.h.
enum FieldContinuity |
Field continuity.
Enumerator | |
---|---|
CONTINUOUS | Regular field. |
DISCONTINUOUS | Broken continuity (No effect on L2 space) |
LASTCONTINUITY |
Definition at line 99 of file definitions.h.
enum FieldSpace |
approximation spaces
Definition at line 82 of file definitions.h.
enum HVecDiffFormatting |
Format in rows of vectorial base gradients of base functions.
Enumerator | |
---|---|
HVEC0_0 | |
HVEC1_0 | |
HVEC2_0 | |
HVEC0_1 | |
HVEC1_1 | |
HVEC2_1 | |
HVEC0_2 | |
HVEC1_2 | |
HVEC2_2 |
Definition at line 204 of file definitions.h.
enum HVecFormatting |
Format in rows of vectorial base functions.
Enumerator | |
---|---|
HVEC0 | |
HVEC1 | |
HVEC2 |
Definition at line 199 of file definitions.h.
enum MoFEMErrorCodes |
Error handling.
This is complementary to PETSC error codes. The numerical values for these are defined in include/petscerror.h. The names are defined in err.c
MoAB error messages are defined in moab/Types.hpp
Definition at line 29 of file definitions.h.
enum MoFEMTypes |
Those types control how functions respond on arguments, f.e. error handling.
Enumerator | |
---|---|
MF_ZERO | |
MF_EXCL | |
MF_EXIST | |
MF_NOT_THROW |
Definition at line 110 of file definitions.h.
enum RowColData |
enum VERBOSITY_LEVELS |
Verbosity levels.
Enumerator | |
---|---|
DEFAULT_VERBOSITY | |
QUIET | |
VERBOSE | |
VERY_VERBOSE | |
NOISY | |
VERY_NOISY |
Definition at line 219 of file definitions.h.
DEPRECATED void macro_is_deprecated_using_deprecated_function | ( | ) |
|
static |
Definition at line 72 of file definitions.h.
|
static |
Coordinate system names.
Definition at line 121 of file definitions.h.
|
static |
Names of types of sets and boundary conditions.
Definition at line 188 of file definitions.h.
|
static |
Definition at line 105 of file definitions.h.
|
static |
Definition at line 92 of file definitions.h.
|
static |
Definition at line 44 of file definitions.h.