Next: Bibliography Up: Iterative Methods Previous: Iterative Methods Contents

##
psb_krylov -- Krylov Methods Driver Routine

This subroutine is a driver that provides a general interface for all the Krylov-Subspace family methods implemented in PSBLAS version 2.

The stopping criterion is the normwise backward error, in the infinity norm, i.e. the iteration is stopped when

or the 2-norm residual reduction

according to the value passed through the istop argument (see later). In the above formulae, is the tentative solution and the corresponding residual at the -th iteration.

    call psb_krylov(method,a,prec,b,x,eps,desc_a,info,&
         & itmax,iter,err,itrace,irst,istop,cond)

Type:
  Synchronous.
On Entry
method
  a string that defines the iterative method to be used. Supported values are:
  CG:
    the Conjugate Gradient method;
  CGS:
    the Conjugate Gradient Stabilized method;

  BICG:
    the Bi-Conjugate Gradient method;
  BICGSTAB:
    the Bi-Conjugate Gradient Stabilized method;
  BICGSTABL:
    the Bi-Conjugate Gradient Stabilized method with restarting;
  RGMRES:
    the Generalized Minimal Residual method with restarting.
a
  the local portion of global sparse matrix .
  Scope: local
  Type: required
  Intent: in.
  Specified as: a structured data of type spdata`psb_Tspmat_type`.
prec
  The data structure containing the preconditioner.
  Scope: local
  Type: required
  Intent: in.
  Specified as: a structured data of type precdata`psb_prec_type`.
b
  The RHS vector.
  Scope: local
  Type: required
  Intent: in.
  Specified as: a rank one array.
x
  The initial guess.
  Scope: local
  Type: required
  Intent: inout.
  Specified as: a rank one array.
eps
  The stopping tolerance.
  Scope: global
  Type: required
  Intent: in.
  Specified as: a real number.
desc_a
  contains data structures for communications.
  Scope: local
  Type: required
  Intent: in.
  Specified as: a structured data of type descdata`psb_desc_type`.
itmax
  The maximum number of iterations to perform.
  Scope: global
  Type: optional
  Intent: in.
  Default: .
  Specified as: an integer variable .
itrace
  If print out an informational message about convergence every iterations.
  Scope: global
  Type: optional
  Intent: in.
irst
  An integer specifying the restart parameter.
  Scope: global
  Type: optional.
  Intent: in.
  Values: . This is employed for the BiCGSTABL or RGMRES methods, otherwise it is ignored.

istop
  An integer specifying the stopping criterion.
  Scope: global
  Type: optional.
  Intent: in.
  Values: 1: use the normwise backward error, 2: use the scaled 2-norm of the residual. Default: 2.
On Return
x
  The computed solution.
  Scope: local
  Type: required
  Intent: inout.
  Specified as: a rank one array.
iter
  The number of iterations performed.
  Scope: global
  Type: optional
  Intent: out.
  Returned as: an integer variable.
err
  The convergence estimate on exit.
  Scope: global
  Type: optional
  Intent: out.
  Returned as: a real number.
cond
  An estimate of the condition number of matrix ; only available with the method.
  Scope: global
  Type: optional
  Intent: out.
  Returned as: a real number.
info
  Error code.
  Scope: local
  Type: required
  Intent: out.
  An integer value; 0 means no error has been detected.

Next: Bibliography Up: Iterative Methods Previous: Iterative Methods Contents