Neko  0.8.1
A portable framework for high-order spectral element flow simulations
cg_sx Module Reference

Defines various Conjugate Gradient methods. More...

Data Types

type  sx_cg_t
 Standard preconditioned conjugate gradient method (SX version) More...
 

Functions/Subroutines

subroutine sx_cg_init (this, n, max_iter, M, rel_tol, abs_tol)
 Initialise a standard PCG solver. More...
 
subroutine sx_cg_free (this)
 Deallocate a standard PCG solver. More...
 
type(ksp_monitor_t) function sx_cg_solve (this, Ax, x, f, n, coef, blst, gs_h, niter)
 Standard PCG solve. More...
 

Detailed Description

Defines various Conjugate Gradient methods.

Function/Subroutine Documentation

◆ sx_cg_free()

subroutine cg_sx::sx_cg_free ( class(sx_cg_t), intent(inout)  this)
private

Deallocate a standard PCG solver.

Definition at line 94 of file cg_sx.f90.

◆ sx_cg_init()

subroutine cg_sx::sx_cg_init ( class(sx_cg_t), intent(inout)  this,
integer, intent(in)  n,
integer, intent(in)  max_iter,
class(pc_t), intent(inout), optional, target  M,
real(kind=rp), intent(inout), optional  rel_tol,
real(kind=rp), intent(inout), optional  abs_tol 
)

Initialise a standard PCG solver.

Definition at line 62 of file cg_sx.f90.

◆ sx_cg_solve()

type(ksp_monitor_t) function cg_sx::sx_cg_solve ( class(sx_cg_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

Standard PCG solve.

Definition at line 120 of file cg_sx.f90.

Here is the call graph for this function: