Neko  0.9.0
A portable framework for high-order spectral element flow simulations
gmres_sx Module Reference

Defines various GMRES methods.

Data Types

type  sx_gmres_t
 Standard preconditioned generalized minimal residual method (SX version) More...
 

Functions/Subroutines

subroutine sx_gmres_init (this, n, max_iter, M, lgmres, rel_tol, abs_tol, monitor)
 Initialise a standard GMRES solver. More...
 
subroutine sx_gmres_free (this)
 Deallocate a standard GMRES solver. More...
 
type(ksp_monitor_t) function sx_gmres_solve (this, Ax, x, f, n, coef, blst, gs_h, niter)
 Standard PCG solve. More...
 
type(ksp_monitor_t) function, dimension(3) sx_gmres_solve_coupled (this, Ax, x, y, z, fx, fy, fz, n, coef, blstx, blsty, blstz, gs_h, niter)
 Standard GMRES coupled solve. More...
 

Function/Subroutine Documentation

◆ sx_gmres_free()

subroutine gmres_sx::sx_gmres_free ( class(sx_gmres_t), intent(inout)  this)
private

Definition at line 134 of file gmres_sx.f90.

◆ sx_gmres_init()

subroutine gmres_sx::sx_gmres_init ( class(sx_gmres_t), intent(inout)  this,
integer, intent(in)  n,
integer, intent(in)  max_iter,
class(pc_t), intent(inout), optional, target  M,
integer, intent(inout), optional  lgmres,
real(kind=rp), intent(inout), optional  rel_tol,
real(kind=rp), intent(inout), optional  abs_tol,
logical, intent(in), optional  monitor 
)

Definition at line 73 of file gmres_sx.f90.

◆ sx_gmres_solve()

type(ksp_monitor_t) function gmres_sx::sx_gmres_solve ( class(sx_gmres_t), intent(inout)  this,
class(ax_t), intent(inout)  Ax,
type(field_t), intent(inout)  x,
real(kind=rp), dimension(n), intent(inout)  f,
integer, intent(in)  n,
type(coef_t), intent(inout)  coef,
type(bc_list_t), intent(inout)  blst,
type(gs_t), intent(inout)  gs_h,
integer, intent(in), optional  niter 
)
private

Definition at line 188 of file gmres_sx.f90.

Here is the call graph for this function:

◆ sx_gmres_solve_coupled()

type(ksp_monitor_t) function, dimension(3) gmres_sx::sx_gmres_solve_coupled ( class(sx_gmres_t), intent(inout)  this,
class(ax_t), intent(inout)  Ax,
type(field_t), intent(inout)  x,
type(field_t), intent(inout)  y,
type(field_t), intent(inout)  z,
real(kind=rp), dimension(n), intent(inout)  fx,
real(kind=rp), dimension(n), intent(inout)  fy,
real(kind=rp), dimension(n), intent(inout)  fz,
integer, intent(in)  n,
type(coef_t), intent(inout)  coef,
type(bc_list_t), intent(inout)  blstx,
type(bc_list_t), intent(inout)  blsty,
type(bc_list_t), intent(inout)  blstz,
type(gs_t), intent(inout)  gs_h,
integer, intent(in), optional  niter 
)
private

Definition at line 342 of file gmres_sx.f90.