Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
gmres Module Reference

Implements gmres_t.

Data Types

type  gmres_t
 CPU implementation of the preconditioned standard GMRES method. More...

Functions/Subroutines

subroutine gmres_init (this, n, max_iter, m, rel_tol, abs_tol, monitor)
 Initialise a standard GMRES solver.
subroutine gmres_init_from_json (this, n, json, m)
 Initialise a standard GMRES solver from a JSON solver block. Reads space_size (default GMRES_SPACE_SIZE), then the keys of the base type.
subroutine gmres_free (this)
 Free a standard GMRES solver.
type(ksp_monitor_t) function gmres_solve (this, ax, x, f, n, coef, bc_projector, gs_h, niter)
 Solve a linear system with the standard GMRES method.
type(ksp_monitor_t) function, dimension(3) gmres_solve_coupled (this, ax, x, y, z, fx, fy, fz, n, coef, bc_projector, gs_h, niter)
 Solve three independent systems with the standard GMRES method.

Variables

integer, parameter, public gmres_space_size = 30
 Default Krylov space size (restart length) of the GMRES solvers.

Function/Subroutine Documentation

◆ gmres_free()

subroutine gmres::gmres_free ( class(gmres_t), intent(inout) this)
private

Definition at line 173 of file gmres.f90.

◆ gmres_init()

subroutine gmres::gmres_init ( class(gmres_t), intent(inout), target this,
integer, intent(in) n,
integer, intent(in) max_iter,
class(pc_t), intent(in), optional, target m,
real(kind=rp), intent(in), optional rel_tol,
real(kind=rp), intent(in), optional abs_tol,
logical, intent(in), optional monitor )

Definition at line 104 of file gmres.f90.

◆ gmres_init_from_json()

subroutine gmres::gmres_init_from_json ( class(gmres_t), intent(inout), target this,
integer, intent(in) n,
type(json_file), intent(inout) json,
class(pc_t), intent(in), optional, target m )
private

Definition at line 153 of file gmres.f90.

◆ gmres_solve()

type(ksp_monitor_t) function gmres::gmres_solve ( class(gmres_t), intent(inout) this,
class(ax_t), intent(in) ax,
type(field_t), intent(inout) x,
real(kind=rp), dimension(n), intent(in) f,
integer, intent(in) n,
type(coef_t), intent(inout) coef,
class(scalar_bc_projector_t), intent(inout) bc_projector,
type(gs_t), intent(inout) gs_h,
integer, intent(in), optional niter )
private

Definition at line 211 of file gmres.f90.

Here is the call graph for this function:

◆ gmres_solve_coupled()

type(ksp_monitor_t) function, dimension(3) gmres::gmres_solve_coupled ( class(gmres_t), intent(inout) this,
class(ax_t), intent(in) 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(in) fx,
real(kind=rp), dimension(n), intent(in) fy,
real(kind=rp), dimension(n), intent(in) fz,
integer, intent(in) n,
type(coef_t), intent(inout) coef,
class(vector_bc_projector_t), intent(inout) bc_projector,
type(gs_t), intent(inout) gs_h,
integer, intent(in), optional niter )
private

Definition at line 467 of file gmres.f90.

Variable Documentation

◆ gmres_space_size

integer, parameter, public gmres::gmres_space_size = 30

Definition at line 60 of file gmres.f90.