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

Defines various GMRES methods.

Data Types

type  gmres_device_t
 Standard preconditioned generalized minimal residual method. More...
interface  hip_gmres_part2

Functions/Subroutines

real(c_rp) function device_gmres_part2 (w_d, v_d_d, h_d, mult_d, j, n)
subroutine gmres_device_init (this, n, max_iter, m, rel_tol, abs_tol, monitor)
 Initialise a standard GMRES solver.
subroutine gmres_device_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_device_free (this)
 Deallocate a standard GMRES solver.
type(ksp_monitor_t) function gmres_device_solve (this, ax, x, f, n, coef, bc_projector, gs_h, niter)
 Standard GMRES solve.
type(ksp_monitor_t) function, dimension(3) gmres_device_solve_coupled (this, ax, x, y, z, fx, fy, fz, n, coef, bc_projector, gs_h, niter)
 Standard GMRES coupled solve.

Function/Subroutine Documentation

◆ device_gmres_part2()

real(c_rp) function gmres_device::device_gmres_part2 ( type(c_ptr), value w_d,
type(c_ptr), value v_d_d,
type(c_ptr), value h_d,
type(c_ptr), value mult_d,
integer(c_int) j,
integer(c_int) n )
private

Definition at line 123 of file gmres_device.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gmres_device_free()

subroutine gmres_device::gmres_device_free ( class(gmres_device_t), intent(inout) this)
private

Definition at line 256 of file gmres_device.F90.

◆ gmres_device_init()

subroutine gmres_device::gmres_device_init ( class(gmres_device_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 )
private

Definition at line 146 of file gmres_device.F90.

◆ gmres_device_init_from_json()

subroutine gmres_device::gmres_device_init_from_json ( class(gmres_device_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 236 of file gmres_device.F90.

◆ gmres_device_solve()

type(ksp_monitor_t) function gmres_device::gmres_device_solve ( class(gmres_device_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 348 of file gmres_device.F90.

Here is the call graph for this function:

◆ gmres_device_solve_coupled()

type(ksp_monitor_t) function, dimension(3) gmres_device::gmres_device_solve_coupled ( class(gmres_device_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 517 of file gmres_device.F90.