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

Krylov subspace methods – Preconditioned GMRes with safety net. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_dcsr_spgmres (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Preconditioned GMRES method for solving Au=b with safe-guard. More...
 
INT fasp_solver_bdcsr_spgmres (block_dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Preconditioned GMRES method for solving Au=b with safe-guard. More...
 
INT fasp_solver_dbsr_spgmres (dBSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Preconditioned GMRES method for solving Au=b with safe-guard. More...
 
INT fasp_solver_dstr_spgmres (dSTRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Preconditioned GMRES method for solving Au=b with safe-guard. More...
 

Detailed Description

Krylov subspace methods – Preconditioned GMRes with safety net.

Note
Refer to Y. Saad 2003 Iterative methods for sparse linear systems (2nd Edition), SIAM
See also pgmres.c for a variable restarting version.
See pgmres.c for a version without safety net

Definition in file spgmres.c.

Function Documentation

INT fasp_solver_bdcsr_spgmres ( block_dCSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

Preconditioned GMRES method for solving Au=b with safe-guard.

Parameters
APointer to block_dCSRmat: the coefficient matrix
bPointer to dvector: the right hand side
xPointer to dvector: the unknowns
pcPointer to the structure of precondition (precond)
tolTolerance for stopping
MaxItMaximal number of iterations
restartRestarting steps
stop_typeStopping criteria type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/05/2013

Definition at line 386 of file spgmres.c.

INT fasp_solver_dbsr_spgmres ( dBSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

Preconditioned GMRES method for solving Au=b with safe-guard.

Parameters
APointer to dBSRmat: the coefficient matrix
bPointer to dvector: the right hand side
xPointer to dvector: the unknowns
pcPointer to the structure of precondition (precond)
tolTolerance for stopping
MaxItMaximal number of iterations
restartRestarting steps
stop_typeStopping criteria type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/05/2013

Definition at line 726 of file spgmres.c.

INT fasp_solver_dcsr_spgmres ( dCSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

Preconditioned GMRES method for solving Au=b with safe-guard.

Parameters
APointer to dCSRmat: the coefficient matrix
bPointer to dvector: the right hand side
xPointer to dvector: the unknowns
pcPointer to the structure of precondition (precond)
tolTolerance for stopping
MaxItMaximal number of iterations
restartRestarting steps
stop_typeStopping criteria type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/05/2013 Modified by Chunsheng Feng on 07/22/2013: Add adapt memory allocate

Definition at line 46 of file spgmres.c.

INT fasp_solver_dstr_spgmres ( dSTRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

Preconditioned GMRES method for solving Au=b with safe-guard.

Parameters
APointer to dSTRmat: the coefficient matrix
bPointer to dvector: the right hand side
xPointer to dvector: the unknowns
pcPointer to the structure of precondition (precond)
tolTolerance for stopping
MaxItMaximal number of iterations
restartRestarting steps
stop_typeStopping criteria type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/05/2013

Definition at line 1066 of file spgmres.c.