v0.15.0
Loading...
Searching...
No Matches
definitions.h
Go to the documentation of this file.
1/** \file definitions.h
2 * \brief useful compiler derivatives and definitions
3 */
4
5
6#ifndef __DEFINITONS_H__
7#define __DEFINITONS_H__
8
9#ifndef DEPRECATED
10// taken from http://stackoverflow.com/questions/295120/c-mark-as-deprecated
11#ifdef __GNUC__
12#define DEPRECATED __attribute__((deprecated))
13#elif defined(_MSC_VER)
14#define DEPRECATED __declspec(deprecated)
15#else
16#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
17#define DEPRECATED
18#endif
19#endif
20
21/** \brief Error handling
22 *
23 * This is complementary to PETSC error codes. The numerical values for
24 * these are defined in include/petscerror.h. The names are defined in err.c
25 *
26 * MoAB error messages are defined in moab/Types.hpp
27 *
28 */
43
44const static char *const MoFEMErrorCodesNames[] = {
45 "MOFEM_SUCCESS",
46 "MOFEM_DATA_INCONSISTENCY",
47 "MOFEM_NOT_IMPLEMENTED",
48 "MOFEM_NOT_FOUND",
49 "MOFEM_OPERATION_UNSUCCESSFUL",
50 "MOFEM_IMPOSSIBLE_CASE",
51 "MOFEM_INVALID_DATA",
52 "MOFEM_MOFEMEXCEPTION_THROW",
53 "MOFEM_STD_EXCEPTION_THROW",
54 "MOFEM_ATOM_TEST_INVALID",
55 "MOFEM_MOAB_ERROR"};
56
57/// \brief approximation base
59 NOBASE = 0,
61 1, ///< Ainsworth Cole (Legendre) approx. base \cite NME:NME847
62 AINSWORTH_LOBATTO_BASE, ///< Like AINSWORTH_LEGENDRE_BASE but with Lobatto
63 ///< base instead Legendre \cite beriot2015efficient
64 AINSWORTH_BERNSTEIN_BEZIER_BASE, ///< See \cite ainsworth2011bernstein and
65 ///< \cite ainsworth2018bernstein
66 DEMKOWICZ_JACOBI_BASE, ///< Construction of base is by Demkowicz \cite
67 ///< fuentes2015orientation
68 USER_BASE, ///< user implemented approximation base
70};
71
72const static char *const ApproximationBaseNames[] = {
73 "NOBASE",
74 "AINSWORTH_LEGENDRE_BASE",
75 "AINSWORTH_LOBATTO_BASE",
76 "AINSWORTH_BERNSTEIN_BEZIER_BASE",
77 "DEMKOWICZ_JACOBI_BASE",
78 "USER_BASE",
79 "LASTBASE"};
80
81/// \brief approximation spaces
84 NOFIELD = 1, ///< scalar or vector of scalars describe (no true field)
85 H1, ///< continuous field
86 HCURL, ///< field with continuous tangents
87 HDIV, ///< field with continuous normal traction
88 L2, ///< field with C-1 continuity
89 LASTSPACE ///< FieldSpace in [ 0, LASTSPACE )
90};
91
92const static char *const FieldSpaceNames[] = {
93 "NOSPACE", "NOFIELD", "H1", "HCURL", "HDIV", "L2", "LASTSPACE"};
94
95/**
96 * @brief Field continuity
97 *
98 */
100 CONTINUOUS = 0, ///< Regular field
101 DISCONTINUOUS = 1, ///< Broken continuity (No effect on L2 space)
104
105const static char *const FieldContinuityNames[] = {"CONTINUOUS",
106 "DISCONTINUOUS"};
107
108/// \brief Those types control how functions respond on arguments, f.e. error
109/// handling
112 MF_EXCL = 1 << 0,
113 MF_EXIST = 1 << 1,
114 MF_NOT_THROW = 1 << 2
116
117/**
118 * @brief Coordinate system names
119 *
120 */
121const static char *const CoordinateTypesNames[] = {"Cartesian", "Polar",
122 "Cylindrical", "Spherical"};
123/**
124 * @brief Coodinate system
125 *
126 */
134
135/// \brief RowColData
137
138/**
139 * Controls adjency multi_index container (e.g. BYROW is adjacenciecy by field
140 * on on rows), see \ref MoFEM::FieldEntityEntFiniteElementAdjacencyMap
141 *
142 */
143enum ByWhat {
144 BYROW = 1 << 0,
145 BYCOL = 1 << 1,
146 BYDATA = 1 << 2,
147 BYROWDATA = 1 << 0 | 1 << 2,
148 BYCOLDATA = 1 << 1 | 1 << 2,
149 BYROWCOL = 1 << 0 | 1 << 1,
150 BYALL = 1 << 0 | 1 << 1 | 1 << 2
152
153/**
154 * \brief Types of sets and boundary conditions
155 *
156 */
159 NODESET = 1 << 0,
160 SIDESET = 1 << 1,
161 BLOCKSET = 1 << 2,
162 MATERIALSET = 1 << 3,
164 FORCESET = 1 << 5,
165 PRESSURESET = 1 << 6,
166 VELOCITYSET = 1 << 7,
169 HEATFLUXSET = 1 << 10,
170 INTERFACESET = 1 << 11,
171 UNKNOWNNAME = 1 << 12,
172 MAT_ELASTICSET = 1 << 13, ///< block name is "MAT_ELASTIC"
173 MAT_INTERFSET = 1 << 14,
174 MAT_THERMALSET = 1 << 15, ///< block name is "MAT_THERMAL"
175 BODYFORCESSET = 1 << 16, ///< block name is "BODY_FORCES"
176 MAT_MOISTURESET = 1 << 17, ///< block name is "MAT_MOISTURE"
177 DIRICHLET_BC = 1 << 18,
178 NEUMANN_BC = 1 << 19,
179 LASTSET_BC = 1 << 20
181
182// OFF_DEPRECATED static const unsigned int UNKNOWNCUBITNAME = UNKNOWNNAME;
183// OFF_DEPRECATED static const unsigned int LASTCUBITSET = LASTSET_BC;
184
185/**
186 * \brief Names of types of sets and boundary conditions
187 */
188const static char *const CubitBCNames[] = {
189 "UNKNOWNSET", "NODESET", "SIDESET", "BLOCKSET",
190 "MATERIALSET", "DISPLACEMENTSET", "FORCESET", "PRESSURESET",
191 "VELOCITYSET", "ACCELERATIONSET", "TEMPERATURESET", "HEATFLUXSET",
192 "INTERFACESET", "UNKNOWNNAME", "MAT_ELASTICSET", "MAT_INTERFSET",
193 "MAT_THERMALSET", "BODYFORCESSET", "MAT_MOISTURESET", "DIRICHLET_BC",
194 "NEUMANN_BC", "LASTSET_BC"};
195
196/**
197 * \brief Format in rows of vectorial base functions
198 */
200
201/**
202 * \brief Format in rows of vectorial base gradients of base functions
203 */
215
216/**
217 * \brief Verbosity levels
218 */
227
228#define MYPCOMM_INDEX 0 ///< default communicator number PCOMM
229
230#define MAX_CORE_TMP 1 ///< maximal number of cores
231#define BITREFEDGES_SIZE 32 ///< number refined edges
232#define BITREFLEVEL_SIZE 64 ///< max number of refinements
233#define BITFIELDID_SIZE 32 ///< max number of fields
234#define BITFEID_SIZE 32 ///< max number of finite elements
235#define BITPROBLEMID_SIZE 32 ///< max number of problems
236#define BITINTERFACEUID_SIZE 32
237
238// This Is form MOAB
239#define MB_TYPE_WIDTH 4
240#define MB_ID_WIDTH (8 * sizeof(EntityHandle) - MB_TYPE_WIDTH)
241#define MB_TYPE_MASK ((EntityHandle)0xF << MB_ID_WIDTH)
242// 2^MB_TYPE_WIDTH-1 ------^
243
244#define MB_START_ID ((EntityID)1) ///< All entity id's currently start at 1
245#define MB_END_ID \
246 ((EntityID)MB_ID_MASK) ///< Last id is the complement of the MASK
247#define MB_ID_MASK (~MB_TYPE_MASK)
248
249#define MAX_DOFS_ON_ENTITY 512 ///< Maximal number of DOFs on entity
250#define MAX_PROCESSORS_NUMBER 1024 ///< Maximal number of processors
251#define DOF_UID_MASK \
252 (MAX_DOFS_ON_ENTITY - 1) ///< Mask for DOF number on entity form UId
253#define ENTITY_UID_MASK (~DOF_UID_MASK)
254
255#define NOT_USED(x) ((void)(x))
256
257/** \brief set barrier start
258 * Run code in sequence, starting from process 0, and ends on last process.
259 *
260 * It can be only used for testing. Do not use that function as a part of these
261 * code.
262 *
263 */
264#define BARRIER_PCOMM_RANK_START(PCMB) \
265 { \
266 for (unsigned int i = 0; i < PCMB->proc_config().proc_rank(); i++) \
267 MPI_Barrier(PCMB->proc_config().proc_comm()); \
268 };
269
270/** \deprecated Do use this macro, instead use BARRIER_PCOMM_RANK_START
271 */
272#define BARRIER_RANK_START(PCMB) \
273 { \
274 macro_is_deprecated_using_deprecated_function(); \
275 for (unsigned int i = 0; i < PCMB->proc_config().proc_rank(); i++) \
276 MPI_Barrier(PCMB->proc_config().proc_comm()); \
277 };
278
279/** \brief set barrier start
280 * Run code in sequence, starting from process 0, and ends on last process.
281 *
282 * It can be only used for testing. Do not use that function as a part of these
283 * code.
284 *
285 */
286#define BARRIER_PCOMM_RANK_END(PCMB) \
287 { \
288 for (unsigned int i = PCMB->proc_config().proc_rank(); \
289 i < PCMB->proc_config().proc_size(); i++) \
290 MPI_Barrier(PCMB->proc_config().proc_comm()); \
291 };
292
293/** \deprecated Do use this macro, instead use BARRIER_PCOMM_RANK_START
294 */
295#define BARRIER_RANK_END(PCMB) \
296 { \
297 macro_is_deprecated_using_deprecated_function(); \
298 for (unsigned int i = PCMB->proc_config().proc_rank(); \
299 i < PCMB->proc_config().proc_size(); i++) \
300 MPI_Barrier(PCMB->proc_config().proc_comm()); \
301 };
302
303/** \brief set barrier start
304 * Run code in sequence, starting from process 0, and ends on last process.
305 *
306 * It can be only used for testing. Do not use that function as a part of these
307 * code.
308 *
309 */
310#define BARRIER_MOFEM_RANK_START(MOFEM) \
311 { \
312 for (int i = 0; i < (MOFEM)->get_comm_rank(); i++) \
313 MPI_Barrier((MOFEM)->get_comm()); \
314 };
315
316/** \brief set barrier start
317 * Run code in sequence, starting from process 0, and ends on last process.
318 *
319 * It can be only used for testing. Do not use that function as a part of these
320 * code.
321 *
322 */
323#define BARRIER_MOFEM_RANK_END(MOFEM) \
324 { \
325 for (int i = (MOFEM)->get_comm_rank(); i < (MOFEM)->get_comm_size(); i++) \
326 MPI_Barrier((MOFEM)->get_comm()); \
327 };
328
329#ifdef __cplusplus
330extern "C" {
331#endif
332
333/**
334 * \brief Is used to indicate that macro is deprecated
335 * Do nothing just triggers error at the compilation
336 */
338
339#ifdef __cplusplus
340}
341#endif
342
343/**
344 * \brief First executable line of each MoFEM function, used for error handling.
345 Final line of MoFEM functions should be MoFEMFunctionReturn(0);
346
347 \node Not collective
348
349 Example
350 \code
351 PetscErrorCode fun() {
352 int something;
353 MoFEMFunctionBegin;
354 MoFEMFunctionReturn(0);
355 }
356 \endcode
357
358 */
359#define MoFEMFunctionBegin \
360 PetscFunctionBeginUser; \
361 try {
362
363/**
364 * @brief \brief Catch errors
365 *
366 * Usage in main functions
367 * \code
368 * int main(int argc, char *argv[]) {
369 *
370 * MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
371 *
372 * try {
373 *
374 * // More code here
375 *
376 * }
377 * CATCH_ERRORS;
378 *
379 * return MoFEM::Core::Finalize();
380 *
381 * }
382 * \endcode
383 *
384 */
385#define CATCH_ERRORS \
386 catch (MoFEMExceptionInitial const &ex) { \
387 return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
388 ex.errorCode, PETSC_ERROR_INITIAL, "%s", ex.what()); \
389 } \
390 catch (MoFEMExceptionRepeat const &ex) { \
391 return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
392 ex.errorCode, PETSC_ERROR_REPEAT, "%s", " "); \
393 } \
394 catch (MoFEMException const &ex) { \
395 SETERRQ(PETSC_COMM_SELF, ex.errorCode, "%s", ex.errorMessage); \
396 } \
397 catch (boost::bad_weak_ptr & ex) { \
398 std::string message("Boost bad weak ptr: " + std::string(ex.what()) + \
399 " at " + boost::lexical_cast<std::string>(__LINE__) + \
400 " : " + std::string(__FILE__) + " in " + \
401 std::string(PETSC_FUNCTION_NAME)); \
402 SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, "%s", \
403 message.c_str()); \
404 } \
405 catch (std::out_of_range & ex) { \
406 std::string message("Std out of range error: " + std::string(ex.what()) + \
407 " at " + boost::lexical_cast<std::string>(__LINE__) + \
408 " : " + std::string(__FILE__) + " in " + \
409 std::string(PETSC_FUNCTION_NAME)); \
410 SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, "%s", \
411 message.c_str()); \
412 } \
413 catch (std::exception const &ex) { \
414 std::string message("Std error: " + std::string(ex.what()) + " at " + \
415 boost::lexical_cast<std::string>(__LINE__) + " : " + \
416 std::string(__FILE__) + " in " + \
417 std::string(PETSC_FUNCTION_NAME)); \
418 SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, "%s", \
419 message.c_str()); \
420 }
421
422/**
423 * \brief Last executable line of each PETSc function used for error handling.
424 * Replaces return()
425 * @param a error code
426 *
427 * \note MoFEMFunctionReturn has to be used with MoFEMFunctionBegin and can be
428 * used only at the end of the function. If is need to return function in
429 * earlier use MoFEMFunctionReturnHot
430 *
431 */
432#define MoFEMFunctionReturn(a) \
433 } \
434 CATCH_ERRORS \
435 PetscFunctionReturn(a)
436
437/**
438 * \brief First executable line of each MoFEM function, used for error
439 handling. Final line of MoFEM functions should be MoFEMFunctionReturn(0); Use
440 of this function allows for lighter profiling by default.
441
442 \node Not collective
443
444 Example:
445 \code
446 PetscErrorCode fun() {
447 int something;
448 MoFEMFunctionBeginHot;
449
450 // some work here
451
452 MoFEMFunctionReturnHot(0);
453 }
454 \endcode
455*/
456#define MoFEMFunctionBeginHot PetscFunctionBeginHot
457
458/**
459 * \brief Last executable line of each PETSc function used for error handling.
460 * Replaces return()
461 * @param a error code
462 */
463#define MoFEMFunctionReturnHot(a) PetscFunctionReturn(a)
464
465#define CHKERRQ_PETSC(n) CHKERRQ(n)
466/**
467 * \brief check error code of MoAB function
468 * @param a MoABErrorCode
469 */
470#define CHKERRQ_MOAB(a) \
471 if (PetscUnlikely(MB_SUCCESS != (a))) { \
472 std::string error_str = (unsigned)(a) <= (unsigned)MB_FAILURE \
473 ? moab::ErrorCodeStr[a] \
474 : "INVALID ERROR CODE"; \
475 std::string str("MOAB error (" + boost::lexical_cast<std::string>((a)) + \
476 ") " + error_str + " at line " + \
477 boost::lexical_cast<std::string>(__LINE__) + " : " + \
478 std::string(__FILE__)); \
479 SETERRQ(PETSC_COMM_SELF, MOFEM_MOAB_ERROR, "%s", str.c_str()); \
480 }
481
482/**
483 * \brief Check error code of MoFEM/MOAB/PETSc function
484 * @param a MoFEMErrorCode
485 *
486 * \code
487 * MoFEMErrorCode fun() {
488 * MoFEMFunctionBeginHot;
489 * rval = fun_moab(); CHKERRG(rval);
490 * ierr = fun_petsc(); CHKERRG(ierr);
491 * merr = fun_mofem(); CHKERRG(merr);
492 * MoFEMFunctionReturnHot(0);
493 * \endcode
494 *
495 * \note Function detect type of errocode using specialized template function
496 * getErrorType, i.e. condition is evaluated at compilation time.
497 *
498 */
499#define CHKERRG(n) \
500 if ((boost::is_same<BOOST_TYPEOF((n)), \
501 MoFEMErrorCodeGeneric<PetscErrorCode>>::value)) { \
502 CHKERRQ_PETSC((n)); \
503 } else if (boost::is_same<BOOST_TYPEOF((n)), \
504 MoFEMErrorCodeGeneric<moab::ErrorCode>>::value) { \
505 CHKERRQ_MOAB((n)); \
506 }
507
508/**
509 * @brief Inline error check
510 *
511 * \code
512 *
513 * MoFEMErrorCode foo() {
514 * MoFEMFunctionBegin;
515 *
516 * // Call other functions
517 * CHKERR fun_moab();
518 * CHKERR fun_petsc();
519 * CHKERR fun_mofem();
520 *
521 * // Throw error
522 * SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "Some error message");
523 *
524 * MoFEMFunctionReturn(0);
525 * }
526 *
527 * int main(int argc, char *argv[]) {
528 *
529 * // Initailise MoFEM and Petsc
530 * MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
531 *
532 * try {
533 *
534 * moab::Core mb_instance; // MoAB database
535 * moab::Interface &moab = mb_instance;
536 * MoFEM::Core core(moab); // MOFEM database
537 * MoFEM::CoreInterface &m_field = core;
538 *
539 * CHKERR foo(); // Call function
540 *
541 * }
542 * CATCH_ERRORS;
543 *
544 * return MoFEM::Core::Finalize();
545 *
546 * }
547 *
548 * \endcode
549 *
550 */
551#define CHKERR MoFEM::ErrorChecker<__LINE__>() <<
552
553/**
554 * \brief Check error code of MoAB function and throw MoFEM exception
555 * @param err MoABErrorCode
556 */
557#define MOAB_THROW(err) \
558 { \
559 if (PetscUnlikely(MB_SUCCESS != (err))) { \
560 std::string error_str = (unsigned)(err) <= (unsigned)MB_FAILURE \
561 ? moab::ErrorCodeStr[err] \
562 : "INVALID ERROR CODE"; \
563 throw MoFEMException(MOFEM_MOAB_ERROR, \
564 ("MOAB error (" + \
565 boost::lexical_cast<std::string>((err)) + ") " + \
566 error_str + " at line " + \
567 boost::lexical_cast<std::string>(__LINE__) + \
568 " : " + std::string(__FILE__)) \
569 .c_str()); \
570 } \
571 }
572
573/**
574 * \brief Throw MoFEM exception
575 * @param msg message
576 */
577#define THROW_MESSAGE(msg) \
578 { \
579 throw MoFEM::MoFEMException( \
580 MOFEM_MOFEMEXCEPTION_THROW, \
581 ("MoFEM error " + boost::lexical_cast<std::string>((msg)) + \
582 " at line " + boost::lexical_cast<std::string>(__LINE__) + " : " + \
583 std::string(__FILE__)) \
584 .c_str()); \
585 }
586
587/**
588 * \brief Check error code of MoAB function and throw MoFEM exception
589 * @param err MoABErrorCode
590 * @param msg error message
591 */
592#define CHK_MOAB_THROW(err, msg) \
593 { \
594 if (PetscUnlikely(static_cast<int>(MB_SUCCESS) != (err))) \
595 { \
596 std::string str; \
597 throw MoFEMException( \
598 MOFEM_MOAB_ERROR, \
599 ("MOAB error (" + boost::lexical_cast<std::string>((err)) + ") " + \
600 boost::lexical_cast<std::string>((msg)) + " at line " + \
601 boost::lexical_cast<std::string>(__LINE__) + " : " + \
602 std::string(__FILE__)) \
603 .c_str()); \
604 } \
605 }
606
607/**
608 * \brief Check and throw MoFEM exception
609 * @param err error code
610 * @param msg message
611 */
612#define CHK_THROW_MESSAGE(err, msg) \
613 { \
614 if (PetscUnlikely((err) != MOFEM_SUCCESS)) \
615 THROW_MESSAGE(msg); \
616 }
617
618/**
619 * \brief Convert number to string
620 * @param x number
621 */
622#define SSTR(x) toString(x)
623
624#define TENSOR1_VEC_PTR(VEC) &VEC[0], &VEC[1], &VEC[2]
625
626#define SYMMETRIC_TENSOR4_MAT_PTR(MAT) \
627 &MAT(0, 0), &MAT(0, 1), &MAT(0, 2), &MAT(0, 3), &MAT(0, 4), &MAT(0, 5), \
628 &MAT(1, 0), &MAT(1, 1), &MAT(1, 2), &MAT(1, 3), &MAT(1, 4), &MAT(1, 5), \
629 &MAT(2, 0), &MAT(2, 1), &MAT(2, 2), &MAT(2, 3), &MAT(2, 4), &MAT(2, 5), \
630 &MAT(3, 0), &MAT(3, 1), &MAT(3, 2), &MAT(3, 3), &MAT(3, 4), &MAT(3, 5), \
631 &MAT(4, 0), &MAT(4, 1), &MAT(4, 2), &MAT(4, 3), &MAT(4, 4), &MAT(4, 5), \
632 &MAT(5, 0), &MAT(5, 1), &MAT(5, 2), &MAT(5, 3), &MAT(5, 4), &MAT(5, 5)
633
634#define TENSOR4_MAT_PTR(MAT) &MAT(0, 0), MAT.size2()
635
636#define TENSOR2_MAT_PTR(MAT) \
637 &MAT(0, 0), &MAT(1, 0), &MAT(2, 0), &MAT(3, 0), &MAT(4, 0), &MAT(5, 0), \
638 &MAT(6, 0), &MAT(7, 0), &MAT(8, 0)
639
640#define SYMMETRIC_TENSOR2_MAT_PTR(MAT) \
641 &MAT(0, 0), &MAT(0, 1), &MAT(0, 2), &MAT(0, 3), &MAT(0, 4), &MAT(0, 5)
642
643#define SYMMETRIC_TENSOR2_VEC_PTR(VEC) \
644 &VEC[0], &VEC[1], &VEC[2], &VEC[3], &VEC[4], &VEC[5]
645
646#endif //__DEFINITONS_H__
VERBOSITY_LEVELS
Verbosity levels.
@ VERY_VERBOSE
@ QUIET
@ DEFAULT_VERBOSITY
@ NOISY
@ VERBOSE
@ VERY_NOISY
static const char *const MoFEMErrorCodesNames[]
Definition definitions.h:44
RowColData
RowColData.
@ LASTROWCOLDATA
@ COL
@ DATA
@ ROW
MoFEMTypes
Those types control how functions respond on arguments, f.e. error handling.
@ MF_NOT_THROW
@ MF_ZERO
@ MF_EXIST
@ MF_EXCL
FieldApproximationBase
approximation base
Definition definitions.h:58
@ LASTBASE
Definition definitions.h:69
@ AINSWORTH_LEGENDRE_BASE
Ainsworth Cole (Legendre) approx. base nme:nme847.
Definition definitions.h:60
@ AINSWORTH_LOBATTO_BASE
Definition definitions.h:62
@ USER_BASE
user implemented approximation base
Definition definitions.h:68
@ NOBASE
Definition definitions.h:59
@ DEMKOWICZ_JACOBI_BASE
Definition definitions.h:66
@ AINSWORTH_BERNSTEIN_BEZIER_BASE
Definition definitions.h:64
static const char *const CoordinateTypesNames[]
Coordinate system names.
static const char *const FieldContinuityNames[]
FieldSpace
approximation spaces
Definition definitions.h:82
@ L2
field with C-1 continuity
Definition definitions.h:88
@ LASTSPACE
FieldSpace in [ 0, LASTSPACE )
Definition definitions.h:89
@ NOFIELD
scalar or vector of scalars describe (no true field)
Definition definitions.h:84
@ H1
continuous field
Definition definitions.h:85
@ NOSPACE
Definition definitions.h:83
@ HCURL
field with continuous tangents
Definition definitions.h:86
@ HDIV
field with continuous normal traction
Definition definitions.h:87
FieldContinuity
Field continuity.
Definition definitions.h:99
@ LASTCONTINUITY
@ CONTINUOUS
Regular field.
@ DISCONTINUOUS
Broken continuity (No effect on L2 space)
static const char *const FieldSpaceNames[]
Definition definitions.h:92
void macro_is_deprecated_using_deprecated_function()
Is used to indicate that macro is deprecated Do nothing just triggers error at the compilation.
Definition Core.cpp:11
CubitBC
Types of sets and boundary conditions.
@ TEMPERATURESET
@ MATERIALSET
@ PRESSURESET
@ BODYFORCESSET
block name is "BODY_FORCES"
@ NEUMANN_BC
@ MAT_ELASTICSET
block name is "MAT_ELASTIC"
@ ACCELERATIONSET
@ FORCESET
@ HEATFLUXSET
@ DIRICHLET_BC
@ NODESET
@ SIDESET
@ UNKNOWNNAME
@ VELOCITYSET
@ MAT_INTERFSET
@ DISPLACEMENTSET
@ LASTSET_BC
@ MAT_THERMALSET
block name is "MAT_THERMAL"
@ MAT_MOISTURESET
block name is "MAT_MOISTURE"
@ UNKNOWNSET
@ BLOCKSET
@ INTERFACESET
HVecFormatting
Format in rows of vectorial base functions.
@ HVEC0
@ HVEC1
@ HVEC2
MoFEMErrorCodes
Error handling.
Definition definitions.h:29
@ MOFEM_NOT_FOUND
Definition definitions.h:33
@ MOFEM_NOT_INSTALLED
Definition definitions.h:37
@ MOFEM_IMPOSSIBLE_CASE
Definition definitions.h:35
@ MOFEM_STD_EXCEPTION_THROW
Definition definitions.h:39
@ MOFEM_MOFEMEXCEPTION_THROW
Definition definitions.h:38
@ MOFEM_MOAB_ERROR
Definition definitions.h:41
@ MOFEM_OPERATION_UNSUCCESSFUL
Definition definitions.h:34
@ MOFEM_ATOM_TEST_INVALID
Definition definitions.h:40
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
@ MOFEM_SUCCESS
Definition definitions.h:30
@ MOFEM_INVALID_DATA
Definition definitions.h:36
@ MOFEM_NOT_IMPLEMENTED
Definition definitions.h:32
static const char *const ApproximationBaseNames[]
Definition definitions.h:72
CoordinateTypes
Coodinate system.
@ LAST_COORDINATE_SYSTEM
@ CYLINDRICAL
@ POLAR
@ CARTESIAN
@ SPHERICAL
static const char *const CubitBCNames[]
Names of types of sets and boundary conditions.
#define DEPRECATED
Definition definitions.h:17
ByWhat
@ BYCOL
@ BYALL
@ BYCOLDATA
@ BYROWDATA
@ BYROWCOL
@ BYDATA
@ BYROW
HVecDiffFormatting
Format in rows of vectorial base gradients of base functions.
@ HVEC1_1
@ HVEC0_1
@ HVEC1_0
@ HVEC2_1
@ HVEC1_2
@ HVEC2_2
@ HVEC2_0
@ HVEC0_2
@ HVEC0_0