Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
fasp_const.h File Reference

Definition of FASP constants, including messages, solver types, etc. More...

Go to the source code of this file.

Macros

#define FASP_SUCCESS   0
 Definition of return status and error messages. More...
 
#define ERROR_READ_FILE   -1
 
#define ERROR_OPEN_FILE   -10
 
#define ERROR_WRONG_FILE   -11
 
#define ERROR_INPUT_PAR   -13
 
#define ERROR_REGRESS   -14
 
#define ERROR_MAT_SIZE   -15
 
#define ERROR_NUM_BLOCKS   -18
 
#define ERROR_MISC   -19
 
#define ERROR_ALLOC_MEM   -20
 
#define ERROR_DATA_STRUCTURE   -21
 
#define ERROR_DATA_ZERODIAG   -22
 
#define ERROR_DUMMY_VAR   -23
 
#define ERROR_AMG_INTERP_TYPE   -30
 
#define ERROR_AMG_SMOOTH_TYPE   -31
 
#define ERROR_AMG_COARSE_TYPE   -32
 
#define ERROR_AMG_COARSEING   -33
 
#define ERROR_AMG_SETUP   -39
 
#define ERROR_SOLVER_TYPE   -40
 
#define ERROR_SOLVER_PRECTYPE   -41
 
#define ERROR_SOLVER_STAG   -42
 
#define ERROR_SOLVER_SOLSTAG   -43
 
#define ERROR_SOLVER_TOLSMALL   -44
 
#define ERROR_SOLVER_ILUSETUP   -45
 
#define ERROR_SOLVER_MISC   -46
 
#define ERROR_SOLVER_MAXIT   -48
 
#define ERROR_SOLVER_EXIT   -49
 
#define ERROR_QUAD_TYPE   -60
 
#define ERROR_QUAD_DIM   -61
 
#define ERROR_LIC_TYPE   -80
 
#define ERROR_UNKNOWN   -99
 
#define TRUE   1
 Definition of logic type. More...
 
#define FALSE   0
 
#define ON   1
 Definition of switch. More...
 
#define OFF   0
 
#define PRINT_NONE   0
 Print level for all subroutines – not including DEBUG output. More...
 
#define PRINT_MIN   1
 
#define PRINT_SOME   2
 
#define PRINT_MORE   4
 
#define PRINT_MOST   8
 
#define PRINT_ALL   10
 
#define MAT_FREE   0
 Definition of matrix format. More...
 
#define MAT_CSR   1
 
#define MAT_BSR   2
 
#define MAT_STR   3
 
#define MAT_CSRL   6
 
#define MAT_SymCSR   7
 
#define MAT_BLC   8
 
#define MAT_bCSR   11
 
#define MAT_bBSR   12
 
#define MAT_bSTR   13
 
#define SOLVER_DEFAULT   0
 Definition of solver types for iterative methods. More...
 
#define SOLVER_CG   1
 
#define SOLVER_BiCGstab   2
 
#define SOLVER_MinRes   3
 
#define SOLVER_GMRES   4
 
#define SOLVER_VGMRES   5
 
#define SOLVER_VFGMRES   6
 
#define SOLVER_GCG   7
 
#define SOLVER_GCR   8
 
#define SOLVER_SCG   11
 
#define SOLVER_SBiCGstab   12
 
#define SOLVER_SMinRes   13
 
#define SOLVER_SGMRES   14
 
#define SOLVER_SVGMRES   15
 
#define SOLVER_SVFGMRES   16
 
#define SOLVER_SGCG   17
 
#define SOLVER_AMG   21
 
#define SOLVER_FMG   22
 
#define SOLVER_SUPERLU   31
 
#define SOLVER_UMFPACK   32
 
#define SOLVER_MUMPS   33
 
#define SOLVER_PARDISO   34
 
#define SOLVER_STRUMPACK   35
 
#define STOP_REL_RES   1
 Definition of iterative solver stopping criteria types. More...
 
#define STOP_REL_PRECRES   2
 
#define STOP_MOD_REL_RES   3
 
#define PREC_NULL   0
 Definition of preconditioner type for iterative methods. More...
 
#define PREC_DIAG   1
 
#define PREC_AMG   2
 
#define PREC_FMG   3
 
#define PREC_ILU   4
 
#define PREC_SCHWARZ   5
 
#define ILUk   1
 Type of ILU methods. More...
 
#define ILUt   2
 
#define ILUtp   3
 
#define SCHWARZ_FORWARD   1
 Type of Schwarz smoother. More...
 
#define SCHWARZ_BACKWARD   2
 
#define SCHWARZ_SYMMETRIC   3
 
#define CLASSIC_AMG   1
 Definition of AMG types. More...
 
#define SA_AMG   2
 
#define UA_AMG   3
 
#define PAIRWISE   1
 Definition of aggregation types. More...
 
#define VMB   2
 
#define NPAIR   3
 
#define SPAIR   4
 
#define VMB_V   5
 
#define V_CYCLE   1
 Definition of cycle types. More...
 
#define W_CYCLE   2
 
#define AMLI_CYCLE   3
 
#define NL_AMLI_CYCLE   4
 
#define VW_CYCLE   12
 
#define WV_CYCLE   21
 
#define SMOOTHER_JACOBIF   11
 Definition of standard smoother types. More...
 
#define SMOOTHER_JACOBI   1
 
#define SMOOTHER_GS   2
 
#define SMOOTHER_GSF   12
 
#define SMOOTHER_SGS   3
 
#define SMOOTHER_CG   4
 
#define SMOOTHER_SOR   5
 
#define SMOOTHER_SSOR   6
 
#define SMOOTHER_GSOR   7
 
#define SMOOTHER_SGSOR   8
 
#define SMOOTHER_POLY   9
 
#define SMOOTHER_L1DIAG   10
 
#define SMOOTHER_BLKOIL   21
 Definition of specialized smoother types. More...
 
#define SMOOTHER_SPETEN   22
 
#define SMOOTHER_CPRGS   23
 
#define SMOOTHER_CPTRGS   24
 
#define COARSE_RS   1
 Definition of coarsening types. More...
 
#define COARSE_RSP   2
 
#define COARSE_CR   3
 
#define COARSE_AC   4
 
#define COARSE_MIS   5
 
#define INTERP_DIR   1
 Definition of interpolation types. More...
 
#define INTERP_STD   2
 
#define INTERP_ENG   3
 
#define INTERP_EXT   6
 
#define INTERP_RDC   4
 
#define G0PT   -5
 Type of vertices (DOFs) for coarsening. More...
 
#define UNPT   -1
 
#define FGPT   0
 
#define CGPT   1
 
#define ISPT   2
 
#define NO_ORDER   0
 Definition of smoothing order. More...
 
#define CF_ORDER   1
 
#define USERDEFINED   0
 Type of ordering for smoothers. More...
 
#define CPFIRST   1
 
#define FPFIRST   -1
 
#define ASCEND   12
 
#define DESCEND   21
 
#define BIGREAL   1e+20
 Some global constants. More...
 
#define SMALLREAL   1e-20
 
#define SMALLREAL2   1e-40
 
#define MAX_REFINE_LVL   20
 
#define MAX_AMG_LVL   20
 
#define MIN_CDOF   20
 
#define MIN_CRATE   0.9
 
#define MAX_CRATE   20.0
 
#define MAX_RESTART   20
 
#define MAX_STAG   20
 
#define STAG_RATIO   1e-4
 
#define FPNA_RATIO    1e-8
 
#define OPENMP_HOLDS   2000
 

Detailed Description

Definition of FASP constants, including messages, solver types, etc.


Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Warning
This is for internal use only. Do NOT change!

Definition in file fasp_const.h.

Macro Definition Documentation

◆ AMLI_CYCLE

#define AMLI_CYCLE   3

AMLI-cycle

Definition at line 181 of file fasp_const.h.

◆ ASCEND

#define ASCEND   12

Ascending order

Definition at line 249 of file fasp_const.h.

◆ BIGREAL

#define BIGREAL   1e+20

Some global constants.

A large real number

Definition at line 255 of file fasp_const.h.

◆ CF_ORDER

#define CF_ORDER   1

C/F order smoothing

Definition at line 241 of file fasp_const.h.

◆ CGPT

#define CGPT   1

Coarse grid points

Definition at line 234 of file fasp_const.h.

◆ CLASSIC_AMG

#define CLASSIC_AMG   1

Definition of AMG types.

classic AMG

Definition at line 163 of file fasp_const.h.

◆ COARSE_AC

#define COARSE_AC   4

Aggressive coarsening

Definition at line 216 of file fasp_const.h.

◆ COARSE_CR

#define COARSE_CR   3

Compatible relaxation

Definition at line 215 of file fasp_const.h.

◆ COARSE_MIS

#define COARSE_MIS   5

Aggressive coarsening based on MIS

Definition at line 217 of file fasp_const.h.

◆ COARSE_RS

#define COARSE_RS   1

Definition of coarsening types.

Classical

Definition at line 213 of file fasp_const.h.

◆ COARSE_RSP

#define COARSE_RSP   2

Classical, with positive offdiags

Definition at line 214 of file fasp_const.h.

◆ CPFIRST

#define CPFIRST   1

C-points first order

Definition at line 247 of file fasp_const.h.

◆ DESCEND

#define DESCEND   21

Descending order

Definition at line 250 of file fasp_const.h.

◆ ERROR_ALLOC_MEM

#define ERROR_ALLOC_MEM   -20

fail to allocate memory

Definition at line 30 of file fasp_const.h.

◆ ERROR_AMG_COARSE_TYPE

#define ERROR_AMG_COARSE_TYPE   -32

unknown coarsening type

Definition at line 37 of file fasp_const.h.

◆ ERROR_AMG_COARSEING

#define ERROR_AMG_COARSEING   -33

coarsening step failed to complete

Definition at line 38 of file fasp_const.h.

◆ ERROR_AMG_INTERP_TYPE

#define ERROR_AMG_INTERP_TYPE   -30

unknown interpolation type

Definition at line 35 of file fasp_const.h.

◆ ERROR_AMG_SETUP

#define ERROR_AMG_SETUP   -39

AMG setup failed to complete

Definition at line 39 of file fasp_const.h.

◆ ERROR_AMG_SMOOTH_TYPE

#define ERROR_AMG_SMOOTH_TYPE   -31

unknown smoother type

Definition at line 36 of file fasp_const.h.

◆ ERROR_DATA_STRUCTURE

#define ERROR_DATA_STRUCTURE   -21

problem with data structures

Definition at line 31 of file fasp_const.h.

◆ ERROR_DATA_ZERODIAG

#define ERROR_DATA_ZERODIAG   -22

matrix has zero diagonal entries

Definition at line 32 of file fasp_const.h.

◆ ERROR_DUMMY_VAR

#define ERROR_DUMMY_VAR   -23

unexpected input data

Definition at line 33 of file fasp_const.h.

◆ ERROR_INPUT_PAR

#define ERROR_INPUT_PAR   -13

wrong input argument

Definition at line 24 of file fasp_const.h.

◆ ERROR_LIC_TYPE

#define ERROR_LIC_TYPE   -80

wrong license type

Definition at line 54 of file fasp_const.h.

◆ ERROR_MAT_SIZE

#define ERROR_MAT_SIZE   -15

wrong problem size

Definition at line 26 of file fasp_const.h.

◆ ERROR_MISC

#define ERROR_MISC   -19

other error

Definition at line 28 of file fasp_const.h.

◆ ERROR_NUM_BLOCKS

#define ERROR_NUM_BLOCKS   -18

wrong number of blocks

Definition at line 27 of file fasp_const.h.

◆ ERROR_OPEN_FILE

#define ERROR_OPEN_FILE   -10

fail to open a file

Definition at line 22 of file fasp_const.h.

◆ ERROR_QUAD_DIM

#define ERROR_QUAD_DIM   -61

unsupported quadrature dim

Definition at line 52 of file fasp_const.h.

◆ ERROR_QUAD_TYPE

#define ERROR_QUAD_TYPE   -60

unknown quadrature type

Definition at line 51 of file fasp_const.h.

◆ ERROR_READ_FILE

#define ERROR_READ_FILE   -1

fail to read a file

Definition at line 21 of file fasp_const.h.

◆ ERROR_REGRESS

#define ERROR_REGRESS   -14

regression test fail

Definition at line 25 of file fasp_const.h.

◆ ERROR_SOLVER_EXIT

#define ERROR_SOLVER_EXIT   -49

solver does not quit successfully

Definition at line 49 of file fasp_const.h.

◆ ERROR_SOLVER_ILUSETUP

#define ERROR_SOLVER_ILUSETUP   -45

ILU setup error

Definition at line 46 of file fasp_const.h.

◆ ERROR_SOLVER_MAXIT

#define ERROR_SOLVER_MAXIT   -48

maximal iteration number exceeded

Definition at line 48 of file fasp_const.h.

◆ ERROR_SOLVER_MISC

#define ERROR_SOLVER_MISC   -46

misc solver error during run time

Definition at line 47 of file fasp_const.h.

◆ ERROR_SOLVER_PRECTYPE

#define ERROR_SOLVER_PRECTYPE   -41

unknown precond type

Definition at line 42 of file fasp_const.h.

◆ ERROR_SOLVER_SOLSTAG

#define ERROR_SOLVER_SOLSTAG   -43

solver's solution is too small

Definition at line 44 of file fasp_const.h.

◆ ERROR_SOLVER_STAG

#define ERROR_SOLVER_STAG   -42

solver stagnates

Definition at line 43 of file fasp_const.h.

◆ ERROR_SOLVER_TOLSMALL

#define ERROR_SOLVER_TOLSMALL   -44

solver's tolerance is too small

Definition at line 45 of file fasp_const.h.

◆ ERROR_SOLVER_TYPE

#define ERROR_SOLVER_TYPE   -40

unknown solver type

Definition at line 41 of file fasp_const.h.

◆ ERROR_UNKNOWN

#define ERROR_UNKNOWN   -99

an unknown error type

Definition at line 56 of file fasp_const.h.

◆ ERROR_WRONG_FILE

#define ERROR_WRONG_FILE   -11

input contains wrong format

Definition at line 23 of file fasp_const.h.

◆ FALSE

#define FALSE   0

logic FALSE

Definition at line 62 of file fasp_const.h.

◆ FASP_SUCCESS

#define FASP_SUCCESS   0

Definition of return status and error messages.

return from function successfully

Definition at line 19 of file fasp_const.h.

◆ FGPT

#define FGPT   0

Fine grid points

Definition at line 233 of file fasp_const.h.

◆ FPFIRST

#define FPFIRST   -1

F-points first order

Definition at line 248 of file fasp_const.h.

◆ FPNA_RATIO

#define FPNA_RATIO    1e-8

Float-point number arithmetic threshold = tol*FPNA_RATIO \

Definition at line 268 of file fasp_const.h.

◆ G0PT

#define G0PT   -5

Type of vertices (DOFs) for coarsening.

Cannot fit in aggregates

Definition at line 231 of file fasp_const.h.

◆ ILUk

#define ILUk   1

Type of ILU methods.

ILUk

Definition at line 149 of file fasp_const.h.

◆ ILUt

#define ILUt   2

ILUt

Definition at line 150 of file fasp_const.h.

◆ ILUtp

#define ILUtp   3

ILUtp

Definition at line 151 of file fasp_const.h.

◆ INTERP_DIR

#define INTERP_DIR   1

Definition of interpolation types.

Direct interpolation

Definition at line 222 of file fasp_const.h.

◆ INTERP_ENG

#define INTERP_ENG   3

Energy minimization interpolation

Definition at line 224 of file fasp_const.h.

◆ INTERP_EXT

#define INTERP_EXT   6

Extended interpolation

Definition at line 225 of file fasp_const.h.

◆ INTERP_RDC

#define INTERP_RDC   4

Reduction-based amg interpolation

Definition at line 226 of file fasp_const.h.

◆ INTERP_STD

#define INTERP_STD   2

Standard interpolation

Definition at line 223 of file fasp_const.h.

◆ ISPT

#define ISPT   2

Isolated points

Definition at line 235 of file fasp_const.h.

◆ MAT_bBSR

#define MAT_bBSR   12

block BSR/CSR matrix

Definition at line 95 of file fasp_const.h.

◆ MAT_bCSR

#define MAT_bCSR   11

block CSR/CSR matrix == 2*2 BLC matrix

Definition at line 94 of file fasp_const.h.

◆ MAT_BLC

#define MAT_BLC   8

block CSR matrix

Definition at line 90 of file fasp_const.h.

◆ MAT_BSR

#define MAT_BSR   2

block-wise compressed sparse row

Definition at line 86 of file fasp_const.h.

◆ MAT_bSTR

#define MAT_bSTR   13

block STR/CSR matrix

Definition at line 96 of file fasp_const.h.

◆ MAT_CSR

#define MAT_CSR   1

compressed sparse row

Definition at line 85 of file fasp_const.h.

◆ MAT_CSRL

#define MAT_CSRL   6

modified CSR to reduce cache missing

Definition at line 88 of file fasp_const.h.

◆ MAT_FREE

#define MAT_FREE   0

Definition of matrix format.

matrix-free format: only mxv action

Definition at line 83 of file fasp_const.h.

◆ MAT_STR

#define MAT_STR   3

structured sparse matrix

Definition at line 87 of file fasp_const.h.

◆ MAT_SymCSR

#define MAT_SymCSR   7

symmetric CSR format

Definition at line 89 of file fasp_const.h.

◆ MAX_AMG_LVL

#define MAX_AMG_LVL   20

Maximal AMG coarsening level

Definition at line 259 of file fasp_const.h.

◆ MAX_CRATE

#define MAX_CRATE   20.0

Maximal coarsening ratio

Definition at line 262 of file fasp_const.h.

◆ MAX_REFINE_LVL

#define MAX_REFINE_LVL   20

Maximal refinement level

Definition at line 258 of file fasp_const.h.

◆ MAX_RESTART

#define MAX_RESTART   20

Maximal restarting number

Definition at line 263 of file fasp_const.h.

◆ MAX_STAG

#define MAX_STAG   20

Maximal number of stagnation times

Definition at line 264 of file fasp_const.h.

◆ MIN_CDOF

#define MIN_CDOF   20

Minimal number of coarsest variables

Definition at line 260 of file fasp_const.h.

◆ MIN_CRATE

#define MIN_CRATE   0.9

Minimal coarsening ratio

Definition at line 261 of file fasp_const.h.

◆ NL_AMLI_CYCLE

#define NL_AMLI_CYCLE   4

Nonlinear AMLI-cycle

Definition at line 182 of file fasp_const.h.

◆ NO_ORDER

#define NO_ORDER   0

Definition of smoothing order.

Natural order smoothing

Definition at line 240 of file fasp_const.h.

◆ NPAIR

#define NPAIR   3

non-symmetric pairwise aggregation

Definition at line 172 of file fasp_const.h.

◆ OFF

#define OFF   0

turn off certain parameter

Definition at line 68 of file fasp_const.h.

◆ ON

#define ON   1

Definition of switch.

turn on certain parameter

Definition at line 67 of file fasp_const.h.

◆ OPENMP_HOLDS

#define OPENMP_HOLDS   2000

Smallest size for OpenMP version

Definition at line 269 of file fasp_const.h.

◆ PAIRWISE

#define PAIRWISE   1

Definition of aggregation types.

pairwise aggregation, default is SPAIR

Definition at line 170 of file fasp_const.h.

◆ PREC_AMG

#define PREC_AMG   2

with AMG precond

Definition at line 141 of file fasp_const.h.

◆ PREC_DIAG

#define PREC_DIAG   1

with diagonal precond

Definition at line 140 of file fasp_const.h.

◆ PREC_FMG

#define PREC_FMG   3

with full AMG precond

Definition at line 142 of file fasp_const.h.

◆ PREC_ILU

#define PREC_ILU   4

with ILU precond

Definition at line 143 of file fasp_const.h.

◆ PREC_NULL

#define PREC_NULL   0

Definition of preconditioner type for iterative methods.

with no precond

Definition at line 139 of file fasp_const.h.

◆ PREC_SCHWARZ

#define PREC_SCHWARZ   5

with Schwarz preconditioner

Definition at line 144 of file fasp_const.h.

◆ PRINT_ALL

#define PRINT_ALL   10

all: all printouts, including files

Definition at line 78 of file fasp_const.h.

◆ PRINT_MIN

#define PRINT_MIN   1

quiet: print error, important warnings

Definition at line 74 of file fasp_const.h.

◆ PRINT_MORE

#define PRINT_MORE   4

more: print some useful debug info

Definition at line 76 of file fasp_const.h.

◆ PRINT_MOST

#define PRINT_MOST   8

most: maximal printouts, no files

Definition at line 77 of file fasp_const.h.

◆ PRINT_NONE

#define PRINT_NONE   0

Print level for all subroutines – not including DEBUG output.

silent: no printout at all

Definition at line 73 of file fasp_const.h.

◆ PRINT_SOME

#define PRINT_SOME   2

some: print less important warnings

Definition at line 75 of file fasp_const.h.

◆ SA_AMG

#define SA_AMG   2

smoothed aggregation AMG

Definition at line 164 of file fasp_const.h.

◆ SCHWARZ_BACKWARD

#define SCHWARZ_BACKWARD   2

Backward ordering

Definition at line 157 of file fasp_const.h.

◆ SCHWARZ_FORWARD

#define SCHWARZ_FORWARD   1

Type of Schwarz smoother.

Forward ordering

Definition at line 156 of file fasp_const.h.

◆ SCHWARZ_SYMMETRIC

#define SCHWARZ_SYMMETRIC   3

Symmetric smoother

Definition at line 158 of file fasp_const.h.

◆ SMALLREAL

#define SMALLREAL   1e-20

A small real number

Definition at line 256 of file fasp_const.h.

◆ SMALLREAL2

#define SMALLREAL2   1e-40

An extremely small real number

Definition at line 257 of file fasp_const.h.

◆ SMOOTHER_BLKOIL

#define SMOOTHER_BLKOIL   21

Definition of specialized smoother types.

Used in monolithic AMG for black-oil

Definition at line 205 of file fasp_const.h.

◆ SMOOTHER_CG

#define SMOOTHER_CG   4

CG as a smoother

Definition at line 194 of file fasp_const.h.

◆ SMOOTHER_CPRGS

#define SMOOTHER_CPRGS   23

Used in monolithic AMG for thermal reservior

Definition at line 207 of file fasp_const.h.

◆ SMOOTHER_CPTRGS

#define SMOOTHER_CPTRGS   24

Used in monolithic AMG for thermal reservior

Definition at line 208 of file fasp_const.h.

◆ SMOOTHER_GS

#define SMOOTHER_GS   2

Gauss-Seidel smoother

Definition at line 191 of file fasp_const.h.

◆ SMOOTHER_GSF

#define SMOOTHER_GSF   12

Gauss-Seidel smoother on F-points only

Definition at line 192 of file fasp_const.h.

◆ SMOOTHER_GSOR

#define SMOOTHER_GSOR   7

GS + SOR smoother

Definition at line 197 of file fasp_const.h.

◆ SMOOTHER_JACOBI

#define SMOOTHER_JACOBI   1

Jacobi smoother

Definition at line 190 of file fasp_const.h.

◆ SMOOTHER_JACOBIF

#define SMOOTHER_JACOBIF   11

Definition of standard smoother types.

Jacobi smoother on F-points only

Definition at line 189 of file fasp_const.h.

◆ SMOOTHER_L1DIAG

#define SMOOTHER_L1DIAG   10

L1 norm diagonal scaling smoother

Definition at line 200 of file fasp_const.h.

◆ SMOOTHER_POLY

#define SMOOTHER_POLY   9

Polynomial smoother

Definition at line 199 of file fasp_const.h.

◆ SMOOTHER_SGS

#define SMOOTHER_SGS   3

Symmetric Gauss-Seidel smoother

Definition at line 193 of file fasp_const.h.

◆ SMOOTHER_SGSOR

#define SMOOTHER_SGSOR   8

SGS + SSOR smoother

Definition at line 198 of file fasp_const.h.

◆ SMOOTHER_SOR

#define SMOOTHER_SOR   5

SOR smoother

Definition at line 195 of file fasp_const.h.

◆ SMOOTHER_SPETEN

#define SMOOTHER_SPETEN   22

Used in monolithic AMG for black-oil

Definition at line 206 of file fasp_const.h.

◆ SMOOTHER_SSOR

#define SMOOTHER_SSOR   6

SSOR smoother

Definition at line 196 of file fasp_const.h.

◆ SOLVER_AMG

#define SOLVER_AMG   21

AMG as an iterative solver

Definition at line 120 of file fasp_const.h.

◆ SOLVER_BiCGstab

#define SOLVER_BiCGstab   2

Bi-Conjugate Gradient Stabilized

Definition at line 104 of file fasp_const.h.

◆ SOLVER_CG

#define SOLVER_CG   1

Conjugate Gradient

Definition at line 103 of file fasp_const.h.

◆ SOLVER_DEFAULT

#define SOLVER_DEFAULT   0

Definition of solver types for iterative methods.

Use default solver in FASP

Definition at line 101 of file fasp_const.h.

◆ SOLVER_FMG

#define SOLVER_FMG   22

Full AMG as an solver

Definition at line 121 of file fasp_const.h.

◆ SOLVER_GCG

#define SOLVER_GCG   7

Generalized Conjugate Gradient

Definition at line 109 of file fasp_const.h.

◆ SOLVER_GCR

#define SOLVER_GCR   8

Generalized Conjugate Residual

Definition at line 110 of file fasp_const.h.

◆ SOLVER_GMRES

#define SOLVER_GMRES   4

Generalized Minimal Residual

Definition at line 106 of file fasp_const.h.

◆ SOLVER_MinRes

#define SOLVER_MinRes   3

Minimal Residual

Definition at line 105 of file fasp_const.h.

◆ SOLVER_MUMPS

#define SOLVER_MUMPS   33

Direct Solver: MUMPS

Definition at line 125 of file fasp_const.h.

◆ SOLVER_PARDISO

#define SOLVER_PARDISO   34

Direct Solver: PARDISO

Definition at line 126 of file fasp_const.h.

◆ SOLVER_SBiCGstab

#define SOLVER_SBiCGstab   12

BiCGstab with safety net

Definition at line 113 of file fasp_const.h.

◆ SOLVER_SCG

#define SOLVER_SCG   11

Conjugate Gradient with safety net

Definition at line 112 of file fasp_const.h.

◆ SOLVER_SGCG

#define SOLVER_SGCG   17

GCG with safety net

Definition at line 118 of file fasp_const.h.

◆ SOLVER_SGMRES

#define SOLVER_SGMRES   14

GMRes with safety net

Definition at line 115 of file fasp_const.h.

◆ SOLVER_SMinRes

#define SOLVER_SMinRes   13

MinRes with safety net

Definition at line 114 of file fasp_const.h.

◆ SOLVER_STRUMPACK

#define SOLVER_STRUMPACK   35

Direct Solver: STRUMPACK

Definition at line 127 of file fasp_const.h.

◆ SOLVER_SUPERLU

#define SOLVER_SUPERLU   31

Direct Solver: SuperLU

Definition at line 123 of file fasp_const.h.

◆ SOLVER_SVFGMRES

#define SOLVER_SVFGMRES   16

Variable-restart FGMRES with safety net

Definition at line 117 of file fasp_const.h.

◆ SOLVER_SVGMRES

#define SOLVER_SVGMRES   15

Variable-restart GMRES with safety net

Definition at line 116 of file fasp_const.h.

◆ SOLVER_UMFPACK

#define SOLVER_UMFPACK   32

Direct Solver: UMFPack

Definition at line 124 of file fasp_const.h.

◆ SOLVER_VFGMRES

#define SOLVER_VFGMRES   6

Variable Restarting Flexible GMRES

Definition at line 108 of file fasp_const.h.

◆ SOLVER_VGMRES

#define SOLVER_VGMRES   5

Variable Restarting GMRES

Definition at line 107 of file fasp_const.h.

◆ SPAIR

#define SPAIR   4

symmetric pairwise aggregation

Definition at line 173 of file fasp_const.h.

◆ STAG_RATIO

#define STAG_RATIO   1e-4

Stagnation tolerance = tol*STAGRATIO

Definition at line 265 of file fasp_const.h.

◆ STOP_MOD_REL_RES

#define STOP_MOD_REL_RES   3

modified relative residual ||r||/||x||

Definition at line 134 of file fasp_const.h.

◆ STOP_REL_PRECRES

#define STOP_REL_PRECRES   2

relative B-residual ||r||_B/||b||_B

Definition at line 133 of file fasp_const.h.

◆ STOP_REL_RES

#define STOP_REL_RES   1

Definition of iterative solver stopping criteria types.

relative residual ||r||/||b||

Definition at line 132 of file fasp_const.h.

◆ TRUE

#define TRUE   1

Definition of logic type.

logic TRUE

Definition at line 61 of file fasp_const.h.

◆ UA_AMG

#define UA_AMG   3

unsmoothed aggregation AMG

Definition at line 165 of file fasp_const.h.

◆ UNPT

#define UNPT   -1

Undetermined points

Definition at line 232 of file fasp_const.h.

◆ USERDEFINED

#define USERDEFINED   0

Type of ordering for smoothers.

User defined order

Definition at line 246 of file fasp_const.h.

◆ V_CYCLE

#define V_CYCLE   1

Definition of cycle types.

V-cycle

Definition at line 179 of file fasp_const.h.

◆ VMB

#define VMB   2

VMB aggregation

Definition at line 171 of file fasp_const.h.

◆ VMB_V

#define VMB_V   5

Vector VMB aggregation

Definition at line 174 of file fasp_const.h.

◆ VW_CYCLE

#define VW_CYCLE   12

VW-cycle

Definition at line 183 of file fasp_const.h.

◆ W_CYCLE

#define W_CYCLE   2

W-cycle

Definition at line 180 of file fasp_const.h.

◆ WV_CYCLE

#define WV_CYCLE   21

WV-cycle

Definition at line 184 of file fasp_const.h.