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

Krylov subspace methods – Preconditioned variable-restart 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_spvgmres (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration. More...
 
INT fasp_solver_bdcsr_spvgmres (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. More...
 
INT fasp_solver_dbsr_spvgmres (dBSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration. More...
 
INT fasp_solver_dstr_spvgmres (dSTRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration. More...
 

Detailed Description

Krylov subspace methods – Preconditioned variable-restart GMRes with safety net.

Note
Refer to A.H. Baker, E.R. Jessup, and Tz.V. Kolev A Simple Strategy for Varying the Restart Parameter in GMRES(m) Journal of Computational and Applied Mathematics, 230 (2009) pp. 751-761. UCRL-JRNL-235266.
See pvgmres.c a version without safety net

Definition in file spvgmres.c.

Function Documentation

INT fasp_solver_bdcsr_spvgmres ( 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.

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/06/2013

Definition at line 425 of file spvgmres.c.

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

Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration.

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/06/2013

Definition at line 803 of file spvgmres.c.

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

Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration.

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/06/2013 Modified by Chunsheng Feng on 07/22/2013: Add adapt memory allocate

Definition at line 48 of file spvgmres.c.

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

Solve "Ax=b" using PGMRES(right preconditioned) iterative method in which the restart parameter can be adaptively modified during the iteration.

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/06/2013

Definition at line 1181 of file spvgmres.c.