Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
fasp_const.h
Go to the documentation of this file.
1 
21 #ifndef __FASP_MESSAGES__ /*-- allow multiple inclusions --*/
22 #define __FASP_MESSAGES__
23 
27 #define FASP_SUCCESS 0
28 //---------------------------------------------------------------------------------
29 #define ERROR_OPEN_FILE -10
30 #define ERROR_WRONG_FILE -11
31 #define ERROR_INPUT_PAR -13
32 #define ERROR_REGRESS -14
33 #define ERROR_MAT_SIZE -15
34 #define ERROR_NUM_BLOCKS -18
35 #define ERROR_MISC -19
36 //---------------------------------------------------------------------------------
37 #define ERROR_ALLOC_MEM -20
38 #define ERROR_DATA_STRUCTURE -21
39 #define ERROR_DATA_ZERODIAG -22
40 #define ERROR_DUMMY_VAR -23
41 //---------------------------------------------------------------------------------
42 #define ERROR_AMG_INTERP_TYPE -30
43 #define ERROR_AMG_SMOOTH_TYPE -31
44 #define ERROR_AMG_COARSE_TYPE -32
45 #define ERROR_AMG_COARSEING -33
46 //---------------------------------------------------------------------------------
47 #define ERROR_SOLVER_TYPE -40
48 #define ERROR_SOLVER_PRECTYPE -41
49 #define ERROR_SOLVER_STAG -42
50 #define ERROR_SOLVER_SOLSTAG -43
51 #define ERROR_SOLVER_TOLSMALL -44
52 #define ERROR_SOLVER_ILUSETUP -45
53 #define ERROR_SOLVER_MISC -46
54 #define ERROR_SOLVER_MAXIT -48
55 #define ERROR_SOLVER_EXIT -49
56 //---------------------------------------------------------------------------------
57 #define ERROR_QUAD_TYPE -60
58 #define ERROR_QUAD_DIM -61
59 //---------------------------------------------------------------------------------
60 #define ERROR_LIC_TYPE -80
61 //---------------------------------------------------------------------------------
62 #define ERROR_UNKNOWN -99
67 #define TRUE 1
68 #define FALSE 0
73 #define ON 1
74 #define OFF 0
79 #define PRINT_NONE 0
80 #define PRINT_MIN 1
81 #define PRINT_SOME 2
82 #define PRINT_MORE 4
83 #define PRINT_MOST 8
84 #define PRINT_ALL 10
89 #define MAT_FREE 0
90 #define MAT_CSR 1
91 #define MAT_BSR 2
92 #define MAT_STR 3
93 #define MAT_bCSR 4
94 #define MAT_bBSR 5
95 #define MAT_CSRL 6
96 #define MAT_SymCSR 7
101 #define SOLVER_DEFAULT 0
102 //---------------------------------------------------------------------------------
103 #define SOLVER_CG 1
104 #define SOLVER_BiCGstab 2
105 #define SOLVER_MinRes 3
106 #define SOLVER_GMRES 4
107 #define SOLVER_VGMRES 5
108 #define SOLVER_VFGMRES 6
109 #define SOLVER_GCG 7
110 #define SOLVER_GCR 8
111 //---------------------------------------------------------------------------------
112 #define SOLVER_SCG 11
113 #define SOLVER_SBiCGstab 12
114 #define SOLVER_SMinRes 13
115 #define SOLVER_SGMRES 14
116 #define SOLVER_SVGMRES 15
117 #define SOLVER_SVFGMRES 16
118 #define SOLVER_SGCG 17
119 //---------------------------------------------------------------------------------
120 #define SOLVER_AMG 21
121 #define SOLVER_FMG 22
122 //---------------------------------------------------------------------------------
123 #define SOLVER_SUPERLU 31
124 #define SOLVER_UMFPACK 32
125 #define SOLVER_MUMPS 33
126 #define SOLVER_PARDISO 34
131 #define STOP_REL_RES 1
132 #define STOP_REL_PRECRES 2
133 #define STOP_MOD_REL_RES 3
138 #define PREC_NULL 0
139 #define PREC_DIAG 1
140 #define PREC_AMG 2
141 #define PREC_FMG 3
142 #define PREC_ILU 4
143 #define PREC_SCHWARZ 5
148 #define ILUk 1
149 #define ILUt 2
150 #define ILUtp 3
155 #define SCHWARZ_FORWARD 1
156 #define SCHWARZ_BACKWARD 2
157 #define SCHWARZ_SYMMETRIC 3
162 #define CLASSIC_AMG 1
163 #define SA_AMG 2
164 #define UA_AMG 3
169 #define PAIRWISE 1
170 #define VMB 2
175 #define V_CYCLE 1
176 #define W_CYCLE 2
177 #define AMLI_CYCLE 3
178 #define NL_AMLI_CYCLE 4
183 #define SMOOTHER_JACOBI 1
184 #define SMOOTHER_GS 2
185 #define SMOOTHER_SGS 3
186 #define SMOOTHER_CG 4
187 #define SMOOTHER_SOR 5
188 #define SMOOTHER_SSOR 6
189 #define SMOOTHER_GSOR 7
190 #define SMOOTHER_SGSOR 8
191 #define SMOOTHER_POLY 9
192 #define SMOOTHER_L1DIAG 10
197 #define COARSE_RS 1
198 #define COARSE_RSP 2
199 #define COARSE_CR 3
200 #define COARSE_AC 4
201 #define COARSE_MIS 5
206 #define INTERP_DIR 1
207 #define INTERP_STD 2
208 #define INTERP_ENG 3
213 #define G0PT -5
214 #define UNPT -1
215 #define FGPT 0
216 #define CGPT 1
217 #define ISPT 2
222 #define NO_ORDER 0
223 #define CF_ORDER 1
228 #define USERDEFINED 0
229 #define CPFIRST 1
230 #define FPFIRST -1
231 #define ASCEND 12
232 #define DESCEND 21
237 #define BIGREAL 1e+20
238 #define SMALLREAL 1e-20
239 #define SMALLREAL2 1e-40
240 #define MAX_REFINE_LVL 20
241 #define MAX_AMG_LVL 20
242 #define MIN_CDOF 20
243 #define MIN_CRATE 0.9
244 #define MAX_CRATE 20.0
245 #define MAX_RESTART 20
246 #define MAX_STAG 20
247 #define STAG_RATIO 1e-4
248 #define OPENMP_HOLDS 2000
250 #endif /* end if for __FASP_MESSAGES__ */
251 
252 /*---------------------------------*/
253 /*-- End of File --*/
254 /*---------------------------------*/