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

Defines a communication avoiding Conjugate Gradient method. More...

Data Types

type  cacg_t
 S-step communication avoiding preconditioned conjugate gradient method. More...
 

Functions/Subroutines

subroutine cacg_init (this, n, max_iter, M, s, rel_tol, abs_tol)
 Initialise a s-step CA PCG solver. More...
 
subroutine cacg_free (this)
 Deallocate a s-step CA PCG solver. More...
 
type(ksp_monitor_t) function cacg_solve (this, Ax, x, f, n, coef, blst, gs_h, niter)
 S-step CA PCG solve. More...
 
subroutine construct_basis_matrix (Tt, s)
 Monomial matrix constuction, not sparse. More...
 

Detailed Description

Defines a communication avoiding Conjugate Gradient method.

Function/Subroutine Documentation

◆ cacg_free()

subroutine cacg::cacg_free ( class(cacg_t), intent(inout)  this)
private

Deallocate a s-step CA PCG solver.

Definition at line 104 of file cacg.f90.

◆ cacg_init()

subroutine cacg::cacg_init ( class(cacg_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  s,
real(kind=rp), intent(inout), optional  rel_tol,
real(kind=rp), intent(inout), optional  abs_tol 
)

Initialise a s-step CA PCG solver.

Definition at line 65 of file cacg.f90.

Here is the call graph for this function:

◆ cacg_solve()

type(ksp_monitor_t) function cacg::cacg_solve ( class(cacg_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

S-step CA PCG solve.

Definition at line 127 of file cacg.f90.

Here is the call graph for this function:

◆ construct_basis_matrix()

subroutine cacg::construct_basis_matrix ( real(kind=rp), dimension(4*s+1,4*s+1), intent(inout)  Tt,
integer, intent(in)  s 
)
private

Monomial matrix constuction, not sparse.

Definition at line 324 of file cacg.f90.

Here is the caller graph for this function: