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

Krylov subspace methods – Preconditioned variable-restart GMRes. 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_pvgmres (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Right preconditioned GMRES method in which the restart parameter can be adaptively modified during the iteration. More...
 
INT fasp_solver_bdcsr_pvgmres (block_dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Right preconditioned GMRES method in which the restart parameter can be adaptively modified during the iteration. More...
 
INT fasp_solver_dbsr_pvgmres (dBSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Right preconditioned GMRES method in which the restart parameter can be adaptively modified during the iteration. More...
 
INT fasp_solver_dstr_pvgmres (dSTRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 Right preconditioned GMRES method in which the restart parameter can be adaptively modified during the iteration. More...
 

Detailed Description

Krylov subspace methods – Preconditioned variable-restart GMRes.

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 spvgmres.c for a safer version

Definition in file pvgmres.c.

Function Documentation

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

Right preconditioned GMRES 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 precond: the structure of precondition
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 393 of file pvgmres.c.

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

Right preconditioned GMRES 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 precond: the structure of precondition
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
Zhiyang Zhou
Date
12/21/2011

Modified by Chensong Zhang on 05/01/2012 Modified by Chensong Zhang on 04/06/2013: Add stop type support

Definition at line 738 of file pvgmres.c.

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

Right preconditioned GMRES 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 precond: the structure of precondition
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
Zhiyang Zhou
Date
2010/12/14

Modified by Chensong Zhang on 12/13/2011 Modified by Chensong Zhang on 05/01/2012 Modified by Chensong Zhang on 04/06/2013: Add stop type support Modified by Chunsheng Feng on 07/22/2013: Add adapt memory allocate

Definition at line 51 of file pvgmres.c.

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

Right preconditioned GMRES 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 precond: the structure of precondition
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
Zhiyang Zhou
Date
2010/12/14

Modified by Chensong Zhang on 05/01/2012 Modified by Chensong Zhang on 04/06/2013: Add stop type support

Definition at line 1083 of file pvgmres.c.