Fast Auxiliary Space Preconditioning  2.0.6 Jan/10/2018
fasp_const.h
Go to the documentation of this file.
1 
13 #ifndef __FASP_CONST__ /*-- allow multiple inclusions --*/
14 #define __FASP_CONST__
15 
19 #define FASP_SUCCESS 0
20 //---------------------------------------------------------------------------------
21 #define ERROR_OPEN_FILE -10
22 #define ERROR_WRONG_FILE -11
23 #define ERROR_INPUT_PAR -13
24 #define ERROR_REGRESS -14
25 #define ERROR_MAT_SIZE -15
26 #define ERROR_NUM_BLOCKS -18
27 #define ERROR_MISC -19
28 //---------------------------------------------------------------------------------
29 #define ERROR_ALLOC_MEM -20
30 #define ERROR_DATA_STRUCTURE -21
31 #define ERROR_DATA_ZERODIAG -22
32 #define ERROR_DUMMY_VAR -23
33 //---------------------------------------------------------------------------------
34 #define ERROR_AMG_INTERP_TYPE -30
35 #define ERROR_AMG_SMOOTH_TYPE -31
36 #define ERROR_AMG_COARSE_TYPE -32
37 #define ERROR_AMG_COARSEING -33
38 #define ERROR_AMG_SETUP -39
39 //---------------------------------------------------------------------------------
40 #define ERROR_SOLVER_TYPE -40
41 #define ERROR_SOLVER_PRECTYPE -41
42 #define ERROR_SOLVER_STAG -42
43 #define ERROR_SOLVER_SOLSTAG -43
44 #define ERROR_SOLVER_TOLSMALL -44
45 #define ERROR_SOLVER_ILUSETUP -45
46 #define ERROR_SOLVER_MISC -46
47 #define ERROR_SOLVER_MAXIT -48
48 #define ERROR_SOLVER_EXIT -49
49 //---------------------------------------------------------------------------------
50 #define ERROR_QUAD_TYPE -60
51 #define ERROR_QUAD_DIM -61
52 //---------------------------------------------------------------------------------
53 #define ERROR_LIC_TYPE -80
54 //---------------------------------------------------------------------------------
55 #define ERROR_UNKNOWN -99
60 #define TRUE 1
61 #define FALSE 0
66 #define ON 1
67 #define OFF 0
72 #define PRINT_NONE 0
73 #define PRINT_MIN 1
74 #define PRINT_SOME 2
75 #define PRINT_MORE 4
76 #define PRINT_MOST 8
77 #define PRINT_ALL 10
82 #define MAT_FREE 0
83 //---------------------------------------------------------------------------------
84 #define MAT_CSR 1
85 #define MAT_BSR 2
86 #define MAT_STR 3
87 #define MAT_CSRL 6
88 #define MAT_SymCSR 7
89 #define MAT_BLC 8
90 //---------------------------------------------------------------------------------
91 // For bordered systems in reservoir simulation
92 //---------------------------------------------------------------------------------
93 #define MAT_bCSR 11
94 #define MAT_bBSR 12
95 #define MAT_bSTR 13
100 #define SOLVER_DEFAULT 0
101 //---------------------------------------------------------------------------------
102 #define SOLVER_CG 1
103 #define SOLVER_BiCGstab 2
104 #define SOLVER_MinRes 3
105 #define SOLVER_GMRES 4
106 #define SOLVER_VGMRES 5
107 #define SOLVER_VFGMRES 6
108 #define SOLVER_GCG 7
109 #define SOLVER_GCR 8
110 //---------------------------------------------------------------------------------
111 #define SOLVER_SCG 11
112 #define SOLVER_SBiCGstab 12
113 #define SOLVER_SMinRes 13
114 #define SOLVER_SGMRES 14
115 #define SOLVER_SVGMRES 15
116 #define SOLVER_SVFGMRES 16
117 #define SOLVER_SGCG 17
118 //---------------------------------------------------------------------------------
119 #define SOLVER_AMG 21
120 #define SOLVER_FMG 22
121 //---------------------------------------------------------------------------------
122 #define SOLVER_SUPERLU 31
123 #define SOLVER_UMFPACK 32
124 #define SOLVER_MUMPS 33
125 #define SOLVER_PARDISO 34
130 #define STOP_REL_RES 1
131 #define STOP_REL_PRECRES 2
132 #define STOP_MOD_REL_RES 3
137 #define PREC_NULL 0
138 #define PREC_DIAG 1
139 #define PREC_AMG 2
140 #define PREC_FMG 3
141 #define PREC_ILU 4
142 #define PREC_SCHWARZ 5
147 #define ILUk 1
148 #define ILUt 2
149 #define ILUtp 3
154 #define SCHWARZ_FORWARD 1
155 #define SCHWARZ_BACKWARD 2
156 #define SCHWARZ_SYMMETRIC 3
161 #define CLASSIC_AMG 1
162 #define SA_AMG 2
163 #define UA_AMG 3
168 #define PAIRWISE 1
169 #define VMB 2
170 #define USPAIR 3
171 #define SPAIR 4
176 #define V_CYCLE 1
177 #define W_CYCLE 2
178 #define AMLI_CYCLE 3
179 #define NL_AMLI_CYCLE 4
184 #define SMOOTHER_JACOBI 1
185 #define SMOOTHER_GS 2
186 #define SMOOTHER_SGS 3
187 #define SMOOTHER_CG 4
188 #define SMOOTHER_SOR 5
189 #define SMOOTHER_SSOR 6
190 #define SMOOTHER_GSOR 7
191 #define SMOOTHER_SGSOR 8
192 #define SMOOTHER_POLY 9
193 #define SMOOTHER_L1DIAG 10
198 #define SMOOTHER_BLKOIL 11
199 #define SMOOTHER_SPETEN 19
204 #define COARSE_RS 1
205 #define COARSE_RSP 2
206 #define COARSE_CR 3
207 #define COARSE_AC 4
208 #define COARSE_MIS 5
213 #define INTERP_DIR 1
214 #define INTERP_STD 2
215 #define INTERP_ENG 3
216 #define INTERP_EXT 6
221 #define G0PT -5
222 #define UNPT -1
223 #define FGPT 0
224 #define CGPT 1
225 #define ISPT 2
230 #define NO_ORDER 0
231 #define CF_ORDER 1
232 #define ILU_MC_OMP 1
237 #define USERDEFINED 0
238 #define CPFIRST 1
239 #define FPFIRST -1
240 #define ASCEND 12
241 #define DESCEND 21
246 #define BIGREAL 1e+20
247 #define SMALLREAL 1e-20
248 #define SMALLREAL2 1e-40
249 #define MAX_REFINE_LVL 20
250 #define MAX_AMG_LVL 20
251 #define MIN_CDOF 20
252 #define MIN_CRATE 0.9
253 #define MAX_CRATE 20.0
254 #define MAX_RESTART 20
255 #define MAX_STAG 20
256 #define STAG_RATIO 1e-4
257 #define OPENMP_HOLDS 2000
259 #endif /* end if for __FASP_CONST__ */
260 
261 /*---------------------------------*/
262 /*-- End of File --*/
263 /*---------------------------------*/