|
Neko 0.9.1
A portable framework for high-order spectral element flow simulations
|
Implements the base abstract type for Krylov solvers plus helper types.
Data Types | |
| interface | ksp_method |
| Abstract interface for a Krylov method's solve routine. More... | |
| interface | ksp_method_coupled |
| Abstract interface for a Krylov method's coupled solve routine. More... | |
| type | ksp_monitor_t |
| Type for storing initial and final residuals in a Krylov solver. More... | |
| type | ksp_t |
| Base abstract type for a canonical Krylov method, solving \( Ax = f \). More... | |
| interface | ksp_t_free |
| Abstract interface for deallocating a Krylov method. More... | |
Functions/Subroutines | |
| subroutine | krylov_init (this, max_iter, rel_tol, abs_tol, m, monitor) |
| Factory for Krylov solvers. Both creates and initializes the object. | |
| subroutine | krylov_free (this) |
| Deallocate a Krylov solver. | |
| subroutine | krylov_set_pc (this, m) |
| Setup a Krylov solver's preconditioner. | |
| subroutine | krylov_monitor_start (this, name) |
| Monitor start. | |
| subroutine | krylov_monitor_stop (this) |
| Monitor stop. | |
| subroutine | krylov_monitor_iter (this, iter, rnorm) |
| Monitor iteration. | |
Variables | |
| integer, parameter, public | ksp_max_iter = 1e3 |
| Maximum number of iters. | |
| real(kind=rp), parameter, public | ksp_abs_tol = 1d-9 |
| Absolut tolerance. | |
| real(kind=rp), parameter, public | ksp_rel_tol = 1d-9 |
| Relative tolerance. | |
|
private |
Definition at line 261 of file krylov.f90.
|
private |
| object | The object to be allocated. |
| n | Size of the vectors the solver operates on. |
| type_name | The name of the solver type. |
| max_iter | The maximum number of iterations |
| abstol | The absolute tolerance, optional. |
| M | The preconditioner, optional. |
| monitor | Enable/disable monitoring, optional. Destroy an iterative Krylov type_name Constructor for the base type. |
| max_iter | Maximum number of iterations. |
| rel_tol | Relative tolarance for converence. |
| rel_tol | Absolute tolarance for converence. |
| M | The preconditioner. |
Definition at line 215 of file krylov.f90.
|
private |
Definition at line 318 of file krylov.f90.
|
private |
Definition at line 288 of file krylov.f90.
|
private |
Definition at line 306 of file krylov.f90.
|
private |
| M | The preconditioner. |
Definition at line 270 of file krylov.f90.
Definition at line 52 of file krylov.f90.