Neko  0.9.0
A portable framework for high-order spectral element flow simulations
krylov.f90 File Reference

Go to the source code of this file.

Data Types

type  krylov::ksp_monitor_t
 Type for storing initial and final residuals in a Krylov solver. More...
 
type  krylov::ksp_t
 Base abstract type for a canonical Krylov method, solving \( Ax = f \). More...
 
interface  krylov::ksp_method
 Abstract interface for a Krylov method's solve routine. More...
 
interface  krylov::ksp_method_coupled
 Abstract interface for a Krylov method's coupled solve routine. More...
 
interface  krylov::ksp_t_free
 Abstract interface for deallocating a Krylov method. More...
 

Modules

module  krylov
 Implements the base abstract type for Krylov solvers plus helper types.
 

Functions/Subroutines

subroutine krylov::krylov_init (this, max_iter, rel_tol, abs_tol, M, monitor)
 Factory for Krylov solvers. Both creates and initializes the object. More...
 
subroutine krylov::krylov_free (this)
 Deallocate a Krylov solver. More...
 
subroutine krylov::krylov_set_pc (this, M)
 Setup a Krylov solver's preconditioner. More...
 
subroutine krylov::krylov_monitor_start (this, name)
 Monitor start. More...
 
subroutine krylov::krylov_monitor_stop (this)
 Monitor stop. More...
 
subroutine krylov::krylov_monitor_iter (this, iter, rnorm)
 Monitor iteration. More...
 

Variables

integer, parameter, public krylov::ksp_max_iter = 1e3
 Maximum number of iters. More...
 
real(kind=rp), parameter, public krylov::ksp_abs_tol = 1d-9
 Absolut tolerance. More...
 
real(kind=rp), parameter, public krylov::ksp_rel_tol = 1d-9
 Relative tolerance. More...