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

Iterative solvers for block_dCSRmat matrices. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_bdcsr_itsolver (block_dCSRmat *A, dvector *b, dvector *x, precond *pc, itsolver_param *itparam)
 Solve Ax = b by standard Krylov methods. More...
 
INT fasp_solver_bdcsr_krylov (block_dCSRmat *A, dvector *b, dvector *x, itsolver_param *itparam)
 Solve Ax = b by standard Krylov methods. More...
 
INT fasp_solver_bdcsr_krylov_block_3 (block_dCSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, AMG_param *amgparam, dCSRmat *A_diag)
 Solve Ax = b by standard Krylov methods. More...
 
INT fasp_solver_bdcsr_krylov_block_4 (block_dCSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, AMG_param *amgparam, dCSRmat *A_diag)
 Solve Ax = b by standard Krylov methods. More...
 
INT fasp_solver_bdcsr_krylov_sweeping (block_dCSRmat *A, dvector *b, dvector *x, itsolver_param *itparam, INT NumLayers, block_dCSRmat *Ai, dCSRmat *local_A, ivector *local_index)
 Solve Ax = b by standard Krylov methods. More...
 

Detailed Description

Iterative solvers for block_dCSRmat matrices.

Definition in file itsolver_bcsr.c.

Function Documentation

INT fasp_solver_bdcsr_itsolver ( block_dCSRmat A,
dvector b,
dvector x,
precond pc,
itsolver_param itparam 
)

Solve Ax = b by standard Krylov methods.

Parameters
APointer to the coeff matrix in block_dCSRmat 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
Chensong Zhang
Date
11/25/2010

Definition at line 36 of file itsolver_bcsr.c.

INT fasp_solver_bdcsr_krylov ( block_dCSRmat A,
dvector b,
dvector x,
itsolver_param itparam 
)

Solve Ax = b by standard Krylov methods.

Parameters
APointer to the coeff matrix in block_dCSRmat 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
Xiaozhe Hu
Date
07/18/2010

Definition at line 123 of file itsolver_bcsr.c.

INT fasp_solver_bdcsr_krylov_block_3 ( block_dCSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
AMG_param amgparam,
dCSRmat A_diag 
)

Solve Ax = b by standard Krylov methods.

Parameters
APointer to the coeff matrix in block_dCSRmat 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 for AMG solvers
A_diagDigonal blocks of A
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
07/10/2014
Note
only works for 3by3 block dCSRmat problems!! – Xiaozhe Hu

Definition at line 177 of file itsolver_bcsr.c.

INT fasp_solver_bdcsr_krylov_block_4 ( block_dCSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
AMG_param amgparam,
dCSRmat A_diag 
)

Solve Ax = b by standard Krylov methods.

Parameters
APointer to the coeff matrix in block_dCSRmat 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 for AMG solvers
A_diagDigonal blocks of A
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
07/06/2014
Note
only works for 4 by 4 block dCSRmat problems!! – Xiaozhe Hu

Definition at line 383 of file itsolver_bcsr.c.

INT fasp_solver_bdcsr_krylov_sweeping ( block_dCSRmat A,
dvector b,
dvector x,
itsolver_param itparam,
INT  NumLayers,
block_dCSRmat Ai,
dCSRmat local_A,
ivector local_index 
)

Solve Ax = b by standard Krylov methods.

Parameters
APointer to the coeff matrix in block_dCSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
NumLayersNumber of layers used for sweeping preconditioner
AiPointer to the coeff matrix for the preconditioner in block_dCSRmat format
local_APointer to the local coeff matrices in the dCSRmat format
local_indexPointer to the local index in ivector format
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
05/01/2014

Definition at line 509 of file itsolver_bcsr.c.