Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
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
127#define SOLVER_STRUMPACK 35
132#define STOP_REL_RES 1
133#define STOP_REL_PRECRES 2
134#define STOP_MOD_REL_RES 3
139#define PREC_NULL 0
140#define PREC_DIAG 1
141#define PREC_AMG 2
142#define PREC_FMG 3
143#define PREC_ILU 4
144#define PREC_SCHWARZ 5
149#define ILUk 1
150#define ILUt 2
151#define ILUtp 3
156#define SCHWARZ_FORWARD 1
157#define SCHWARZ_BACKWARD 2
158#define SCHWARZ_SYMMETRIC 3
163#define CLASSIC_AMG 1
164#define SA_AMG 2
165#define UA_AMG 3
170#define PAIRWISE 1
171#define VMB 2
172#define NPAIR 3
173#define SPAIR 4
174#define VMB_V 5
179#define V_CYCLE 1
180#define W_CYCLE 2
181#define AMLI_CYCLE 3
182#define NL_AMLI_CYCLE 4
183#define VW_CYCLE 12
184#define WV_CYCLE 21
189#define SMOOTHER_JACOBIF 11
190#define SMOOTHER_JACOBI 1
191#define SMOOTHER_GS 2
192#define SMOOTHER_GSF 12
193#define SMOOTHER_SGS 3
194#define SMOOTHER_CG 4
195#define SMOOTHER_SOR 5
196#define SMOOTHER_SSOR 6
197#define SMOOTHER_GSOR 7
198#define SMOOTHER_SGSOR 8
199#define SMOOTHER_POLY 9
200#define SMOOTHER_L1DIAG 10
205#define SMOOTHER_BLKOIL 21
206#define SMOOTHER_SPETEN 22
207#define SMOOTHER_CPRGS 23
208#define SMOOTHER_CPTRGS 24
213#define COARSE_RS 1
214#define COARSE_RSP 2
215#define COARSE_CR 3
216#define COARSE_AC 4
217#define COARSE_MIS 5
222#define INTERP_DIR 1
223#define INTERP_STD 2
224#define INTERP_ENG 3
225#define INTERP_EXT 6
226#define INTERP_RDC 4
231#define G0PT -5
232#define UNPT -1
233#define FGPT 0
234#define CGPT 1
235#define ISPT 2
240#define NO_ORDER 0
241#define CF_ORDER 1
246#define USERDEFINED 0
247#define CPFIRST 1
248#define FPFIRST -1
249#define ASCEND 12
250#define DESCEND 21
255#define BIGREAL 1e+20
256#define SMALLREAL 1e-20
257#define SMALLREAL2 1e-40
258#define MAX_REFINE_LVL 20
259#define MAX_AMG_LVL 20
260#define MIN_CDOF 20
261#define MIN_CRATE 0.9
262#define MAX_CRATE 20.0
263#define MAX_RESTART 20
264#define MAX_STAG 20
265#define STAG_RATIO 1e-4
266#define FPNA_RATIO \
267 1e-8
269#define OPENMP_HOLDS 2000
271#endif /* end if for __FASP_CONST__ */
272
273/*---------------------------------*/
274/*-- End of File --*/
275/*---------------------------------*/