Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
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.
 
subroutine krylov::krylov_free (this)
 Deallocate a Krylov solver.
 
subroutine krylov::krylov_set_pc (this, m)
 Setup a Krylov solver's preconditioner.
 
subroutine krylov::krylov_monitor_start (this, name)
 Monitor start.
 
subroutine krylov::krylov_monitor_stop (this)
 Monitor stop.
 
subroutine krylov::krylov_monitor_iter (this, iter, rnorm)
 Monitor iteration.
 
pure logical function krylov::krylov_is_converged (this, iter, residual)
 Check for convergence.
 

Variables

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