hp2FEM  0.1
include/ds/DS_defs.h
00001 #ifndef DS_DEFS_H
00002 #define DS_DEFS_H
00003 
00004 typedef double *DoublePtr_T;
00005 
00006 //normas empregadas para checar a convergencia nos metodos iterativos
00007 enum NormDS_E {
00008         EUCLID = 1,
00009         INFINIT
00010 };
00011 
00012 //criterios de convergencia para os metodos iterativos
00013 enum ConvCriterion_E
00014 {
00015         DIFER = 1,      //norma da diferenca ||Un - Un-1||
00016         RESIDUE,            //norma do residuo ||r|| = ||Au - b||
00017         WEIGHT_RESIDUE  //norma do residuo ponderado ||Au - b||//||b||
00018 };
00019 
00020 //matriz de pre-condicionamento para gradiente conjugado
00021 enum PreMatrix_E {
00022         SGS = 0,           //symmetric Gauss-Seidel
00023         SSOR,              //SSOR
00024         SSOR2w             //SSOR sem fator 2-w
00025 };
00026 
00027 
00028 // Used in the solver.
00029 #define PI (4.0 * atan(1.0))
00030 #define EPS 1.0e-16
00031 
00032 // Used for memory aligned. 16 bytes is standart for intel.
00033 #define ALIGNMENT 16
00034 
00035 #endif //DS_DEFS_H
00036 
 All Classes Files Functions Variables Typedefs Friends Defines