00001 #ifndef _DEFS_H_ 00002 #define _DEFS_H_ 00003 00004 /* Types of mesh entities */ 00005 //const int MMC_QUAD = 4; /* quadrilateral element or face */ 00006 //const int MMC_TRIA = 3; /* triangular element or face */ 00007 //const int MMC_TETRA = 7; /* tetrahedral element */ 00008 //const int MMC_PRISM = 5; /* prismatic element */ 00009 //const int MMC_BRICK = 6; /* hexahedral element */ 00010 // 00012 //const int MMC_ACTIVE = 1; /* active mesh entity */ 00013 //const int MMC_INACTIVE = -1; /* inactive (refined) mesh entity */ 00014 //const int MMC_FREE = 0; /* free space in data structure */ 00015 00016 //const int APC_NO_DOFS = -1; 00017 00018 /* Refinement types */ 00019 //const int MMC_NOT_REF = 0; /* not refined */ 00020 //const int MMC_REF_ISO = 1; /* isotropic refinement */ 00021 00022 /* Basis functions types */ 00023 #define APC_TENSOR 0 00024 #define APC_COMPLETE 1 00025 00026 /* Initialization options */ 00027 //const int APC_ZERO = 0; 00028 //const int APC_READ = 1; 00029 //const int APC_INIT = 2; 00030 // 00032 #define ut_max(x,y) ((x)>(y)?(x):(y)) 00033 #define ut_min(x,y) ((x)<(y)?(x):(y)) 00034 #define ut_abs(x) ((x)<0?-(x):(x)) 00035 // 00041 // 00042 //const int APC_MAXEQ = 1; 00043 // 00045 //const int APC_MAXELP_COMP = 9; 00047 //const int APC_MAXELP_TENS = 909; 00048 // 00049 #define APC_MAXELVD 600 00050 //const int APC_MAXELVD = 600; 00053 // 00055 //const int MMC_NO_FATH = 0; /* no father indicator */ 00056 //const int MMC_SAME_ORIENT = 1; /* indicator for the same orientation */ 00057 //const int MMC_OPP_ORIENT = -1; /* indicator for the opposite orientation */ 00061 // 00062 // 00065 // 00066 //#define APC_FALSE 0 00067 //#define APC_TRUE 1 00068 00069 00070 #endif /* _DEFS_H_ 00071 */