Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
precond_csr.c File Reference

Preconditioners for dCSRmat matrices. More...

#include "fasp.h"
#include "fasp_functs.h"
#include "mg_util.inl"

Go to the source code of this file.

Functions

precondfasp_precond_setup (const SHORT precond_type, AMG_param *amgparam, ILU_param *iluparam, dCSRmat *A)
 #include "forts_ns.h" More...
 
void fasp_precond_diag (REAL *r, REAL *z, void *data)
 Diagonal preconditioner z=inv(D)*r. More...
 
void fasp_precond_ilu (REAL *r, REAL *z, void *data)
 ILU preconditioner. More...
 
void fasp_precond_ilu_forward (REAL *r, REAL *z, void *data)
 ILU preconditioner: only forward sweep. More...
 
void fasp_precond_ilu_backward (REAL *r, REAL *z, void *data)
 ILU preconditioner: only backward sweep. More...
 
void fasp_precond_Schwarz (REAL *r, REAL *z, void *data)
 get z from r by Schwarz More...
 
void fasp_precond_amg (REAL *r, REAL *z, void *data)
 AMG preconditioner. More...
 
void fasp_precond_famg (REAL *r, REAL *z, void *data)
 Full AMG preconditioner. More...
 
void fasp_precond_amli (REAL *r, REAL *z, void *data)
 AMLI AMG preconditioner. More...
 
void fasp_precond_nl_amli (REAL *r, REAL *z, void *data)
 Nonlinear AMLI AMG preconditioner. More...
 
void fasp_precond_amg_nk (REAL *r, REAL *z, void *data)
 AMG with extra near kernel solve as preconditioner. More...
 
void fasp_precond_free (const SHORT precond_type, precond *pc)
 free preconditioner More...
 

Detailed Description

Preconditioners for dCSRmat matrices.

Definition in file precond_csr.c.

Function Documentation

void fasp_precond_amg ( REAL r,
REAL z,
void *  data 
)

AMG preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Chensong Zhang
Date
04/06/2010

Definition at line 400 of file precond_csr.c.

void fasp_precond_amg_nk ( REAL r,
REAL z,
void *  data 
)

AMG with extra near kernel solve as preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu
Date
05/26/2014

Definition at line 535 of file precond_csr.c.

void fasp_precond_amli ( REAL r,
REAL z,
void *  data 
)

AMLI AMG preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu
Date
01/23/2011

Definition at line 469 of file precond_csr.c.

void fasp_precond_diag ( REAL r,
REAL z,
void *  data 
)

Diagonal preconditioner z=inv(D)*r.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Chensong Zhang
Date
04/06/2010

Definition at line 159 of file precond_csr.c.

void fasp_precond_famg ( REAL r,
REAL z,
void *  data 
)

Full AMG preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu
Date
02/27/2011

Definition at line 436 of file precond_csr.c.

void fasp_precond_free ( const SHORT  precond_type,
precond pc 
)

free preconditioner

Parameters
precond_typePreconditioner type
*pcprecondition data & fct
Returns
void
Author
Feiteng Huang
Date
12/24/2012

Definition at line 619 of file precond_csr.c.

void fasp_precond_ilu ( REAL r,
REAL z,
void *  data 
)

ILU preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Shiquan Zhang
Date
04/06/2010

Definition at line 185 of file precond_csr.c.

void fasp_precond_ilu_backward ( REAL r,
REAL z,
void *  data 
)

ILU preconditioner: only backward sweep.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu, Shiquan Zhang
Date
04/06/2010

Definition at line 302 of file precond_csr.c.

void fasp_precond_ilu_forward ( REAL r,
REAL z,
void *  data 
)

ILU preconditioner: only forward sweep.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu, Shiquang Zhang
Date
04/06/2010

Definition at line 249 of file precond_csr.c.

void fasp_precond_nl_amli ( REAL r,
REAL z,
void *  data 
)

Nonlinear AMLI AMG preconditioner.

Parameters
rPointer to the vector needs preconditioning
zPointer to preconditioned vector
dataPointer to precondition data
Author
Xiaozhe Hu
Date
04/25/2011

Definition at line 502 of file precond_csr.c.

void fasp_precond_Schwarz ( REAL r,
REAL z,
void *  data 
)

get z from r by Schwarz

Parameters
*rpointer to residual
*zpointer to preconditioned residual
*datapointer to precondition data
Author
Xiaozhe Hu
Date
03/22/2010
Note
Change Schwarz interface by Zheng Li on 11/18/2014

Definition at line 355 of file precond_csr.c.

precond * fasp_precond_setup ( const SHORT  precond_type,
AMG_param amgparam,
ILU_param iluparam,
dCSRmat A 
)

#include "forts_ns.h"

Setup preconditioner interface for iterative methods

Parameters
precond_typePreconditioner type
amgparamPointer to AMG parameters
iluparamPointer to ILU parameters
APointer to the coefficient matrix
Returns
Pointer to preconditioner
Author
Feiteng Huang
Date
05/18/2009

Definition at line 32 of file precond_csr.c.