Choral
Functions/Subroutines
gmres_mod Module Reference

GMRES LINEAR SOLVER More...

Functions/Subroutines

subroutine, public gmres (x, iter, nbPrd, res, b, A, tol, itmax, rst, verb)
 GMRES (no preconditioning) More...
 
subroutine grotmat (cs, sn, a, b)
 Matrice de rotation de Givens. More...
 

Detailed Description

GMRES LINEAR SOLVER

Source = Youssef SAAD, 'Iterative methods for sparse linear system' https://www-users.cs.umn.edu/~saad/IterMethBook_2ndEd.pdf

Function/Subroutine Documentation

◆ gmres()

subroutine, public gmres_mod::gmres ( real(rp), dimension(:), intent(inout)  x,
integer, intent(out)  iter,
integer, intent(out)  nbPrd,
real(rp), intent(out)  res,
real(rp), dimension(:), intent(in)  b,
procedure(rntorn)  A,
real(rp), intent(in)  tol,
integer, intent(in)  itmax,
integer, intent(in)  rst,
integer, intent(in)  verb 
)

GMRES (no preconditioning)

for the linear system \( Ax = b\)

INPUT/OUTPUT :

  • x = initial guess / solution

OUTPUT :

  • res = final residual
  • iter = number of performed iterations
  • iter = -1 = resolution failure

INPUT :

  • b = RHS
  • A = \( A~:~~~x \mapsto A x \) matrix/vector product (procedural)
  • tol = tolerance
  • itMax = maximal iteration-number
  • rst = restart number
  • verb = verbosity

Definition at line 49 of file gmres_mod.f90.

Here is the call graph for this function:

◆ grotmat()

subroutine gmres_mod::grotmat ( real(rp), intent(out)  cs,
real(rp), intent(out)  sn,
real(rp), intent(in)  a,
real(rp), intent(in)  b 
)
private

Matrice de rotation de Givens.

Definition at line 178 of file gmres_mod.f90.