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

Iterative solvers for dBSRmat matrices. More...

#include <time.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "itsolver_util.inl"

Go to the source code of this file.

Functions

INT fasp_solver_dbsr_itsolver (dBSRmat *A, dvector *b, dvector *x, precond *pc, itsolver_param *itparam)
 Solve Ax=b by preconditioned Krylov methods for BSR matrices. More...
 
INT fasp_solver_dbsr_krylov (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam)
 Solve Ax=b by standard Krylov methods for BSR matrices. More...
 
INT fasp_solver_dbsr_krylov_diag (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam)
 Solve Ax=b by diagonal preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_ilu (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, ILU_param *iluparam)
 Solve Ax=b by ILUs preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_amg (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, AMG_param *amgparam)
 Solve Ax=b by AMG preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_amg_nk (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, AMG_param *amgparam, dCSRmat *A_nk, dCSRmat *P_nk, dCSRmat *R_nk)
 Solve Ax=b by AMG with extra near kernel solve preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_nk_amg (dBSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, AMG_param *amgparam, const INT nk_dim, dvector *nk)
 Solve Ax=b by AMG preconditioned Krylov methods with extra kernal space. More...
 

Detailed Description

Iterative solvers for dBSRmat matrices.

Definition in file itsolver_bsr.c.

Function Documentation

INT fasp_solver_dbsr_itsolver ( dBSRmat A,
dvector b,
dvector x,
precond pc,
itsolver_param itparam 
)

Solve Ax=b by preconditioned Krylov methods for BSR matrices.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
pcPointer to the preconditioning action
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Definition at line 37 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam 
)

Solve Ax=b by standard Krylov methods for BSR matrices.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Definition at line 125 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov_amg ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
AMG_param amgparam 
)

Solve Ax=b by AMG preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
03/16/2012

parameters of iterative method

Definition at line 347 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov_amg_nk ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
AMG_param amgparam,
dCSRmat A_nk,
dCSRmat P_nk,
dCSRmat R_nk 
)

Solve Ax=b by AMG with extra near kernel solve preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
A_nkPointer to the coeff matrix for near kernel space in dBSRmat format
P_nkPointer to the prolongation for near kernel space in dBSRmat format
R_nkPointer to the restriction for near kernel space in dBSRmat format
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
05/26/2012

Definition at line 488 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov_diag ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam 
)

Solve Ax=b by diagonal preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Modified by Chunsheng Feng, Zheng Li on 10/15/2012

Definition at line 176 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov_ilu ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
ILU_param iluparam 
)

Solve Ax=b by ILUs preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
iluparamPointer to parameters of ILU
Returns
Iteration number if converges; ERROR otherwise.
Author
Shiquang Zhang, Xiaozhe Hu
Date
10/26/2010

Definition at line 280 of file itsolver_bsr.c.

INT fasp_solver_dbsr_krylov_nk_amg ( dBSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
AMG_param amgparam,
const INT  nk_dim,
dvector nk 
)

Solve Ax=b by AMG preconditioned Krylov methods with extra kernal space.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
nk_dimDimension of the near kernel spaces
nkPointer to the near kernal spaces
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
05/27/2012

parameters of iterative method

Definition at line 647 of file itsolver_bsr.c.