Fast Auxiliary Space Preconditioning
2.7.7 Aug/28/2022
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_READ_FILE -1
22
#define ERROR_OPEN_FILE -10
23
#define ERROR_WRONG_FILE -11
24
#define ERROR_INPUT_PAR -13
25
#define ERROR_REGRESS -14
26
#define ERROR_MAT_SIZE -15
27
#define ERROR_NUM_BLOCKS -18
28
#define ERROR_MISC -19
29
//---------------------------------------------------------------------------------
30
#define ERROR_ALLOC_MEM -20
31
#define ERROR_DATA_STRUCTURE -21
32
#define ERROR_DATA_ZERODIAG -22
33
#define ERROR_DUMMY_VAR -23
34
//---------------------------------------------------------------------------------
35
#define ERROR_AMG_INTERP_TYPE -30
36
#define ERROR_AMG_SMOOTH_TYPE -31
37
#define ERROR_AMG_COARSE_TYPE -32
38
#define ERROR_AMG_COARSEING -33
39
#define ERROR_AMG_SETUP -39
40
//---------------------------------------------------------------------------------
41
#define ERROR_SOLVER_TYPE -40
42
#define ERROR_SOLVER_PRECTYPE -41
43
#define ERROR_SOLVER_STAG -42
44
#define ERROR_SOLVER_SOLSTAG -43
45
#define ERROR_SOLVER_TOLSMALL -44
46
#define ERROR_SOLVER_ILUSETUP -45
47
#define ERROR_SOLVER_MISC -46
48
#define ERROR_SOLVER_MAXIT -48
49
#define ERROR_SOLVER_EXIT -49
50
//---------------------------------------------------------------------------------
51
#define ERROR_QUAD_TYPE -60
52
#define ERROR_QUAD_DIM -61
53
//---------------------------------------------------------------------------------
54
#define ERROR_LIC_TYPE -80
55
//---------------------------------------------------------------------------------
56
#define ERROR_UNKNOWN -99
61
#define TRUE 1
62
#define FALSE 0
67
#define ON 1
68
#define OFF 0
73
#define PRINT_NONE 0
74
#define PRINT_MIN 1
75
#define PRINT_SOME 2
76
#define PRINT_MORE 4
77
#define PRINT_MOST 8
78
#define PRINT_ALL 10
83
#define MAT_FREE 0
84
//---------------------------------------------------------------------------------
85
#define MAT_CSR 1
86
#define MAT_BSR 2
87
#define MAT_STR 3
88
#define MAT_CSRL 6
89
#define MAT_SymCSR 7
90
#define MAT_BLC 8
91
//---------------------------------------------------------------------------------
92
// For bordered systems in reservoir simulation
93
//---------------------------------------------------------------------------------
94
#define MAT_bCSR 11
95
#define MAT_bBSR 12
96
#define MAT_bSTR 13
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
171
#define NPAIR 3
172
#define SPAIR 4
177
#define V_CYCLE 1
178
#define W_CYCLE 2
179
#define AMLI_CYCLE 3
180
#define NL_AMLI_CYCLE 4
181
#define VW_CYCLE 12
182
#define WV_CYCLE 21
187
#define SMOOTHER_JACOBI 1
188
#define SMOOTHER_GS 2
189
#define SMOOTHER_SGS 3
190
#define SMOOTHER_CG 4
191
#define SMOOTHER_SOR 5
192
#define SMOOTHER_SSOR 6
193
#define SMOOTHER_GSOR 7
194
#define SMOOTHER_SGSOR 8
195
#define SMOOTHER_POLY 9
196
#define SMOOTHER_L1DIAG 10
201
#define SMOOTHER_BLKOIL 11
202
#define SMOOTHER_SPETEN 19
207
#define COARSE_RS 1
208
#define COARSE_RSP 2
209
#define COARSE_CR 3
210
#define COARSE_AC 4
211
#define COARSE_MIS 5
216
#define INTERP_DIR 1
217
#define INTERP_STD 2
218
#define INTERP_ENG 3
219
#define INTERP_EXT 6
224
#define G0PT -5
225
#define UNPT -1
226
#define FGPT 0
227
#define CGPT 1
228
#define ISPT 2
233
#define NO_ORDER 0
234
#define CF_ORDER 1
239
#define USERDEFINED 0
240
#define CPFIRST 1
241
#define FPFIRST -1
242
#define ASCEND 12
243
#define DESCEND 21
248
#define BIGREAL 1e+20
249
#define SMALLREAL 1e-20
250
#define SMALLREAL2 1e-40
251
#define MAX_REFINE_LVL 20
252
#define MAX_AMG_LVL 20
253
#define MIN_CDOF 20
254
#define MIN_CRATE 0.9
255
#define MAX_CRATE 20.0
256
#define MAX_RESTART 20
257
#define MAX_STAG 20
258
#define STAG_RATIO 1e-4
259
#define FPNA_RATIO 1e-8
260
#define OPENMP_HOLDS 2000
262
#endif
/* end if for __FASP_CONST__ */
263
264
/*---------------------------------*/
265
/*-- End of File --*/
266
/*---------------------------------*/
base
include
fasp_const.h
Generated on Sun Aug 28 2022 17:40:47 for Fast Auxiliary Space Preconditioning by
1.9.2