Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
Pipelined preconditioned conjugate gradient method. More...
Public Member Functions | |
procedure, pass(this) | init (this, n, max_iter, m, rel_tol, abs_tol, monitor) |
Initialise a pipelined PCG solver. | |
procedure, pass(this) | free (this) |
Deallocate a pipelined PCG solver. | |
procedure, pass(this) | solve (this, ax, x, f, n, coef, blst, gs_h, niter) |
Pipelined PCG solve. | |
procedure, pass(this) | solve_coupled (this, ax, x, y, z, fx, fy, fz, n, coef, blstx, blsty, blstz, gs_h, niter) |
Pipelined PCG coupled solve. | |
procedure, pass(this) | ksp_init (this, max_iter, rel_tol, abs_tol, m, monitor) |
Base type constructor. | |
procedure, pass(this) | ksp_free (this) |
Base type destructor. | |
procedure, pass(this) | set_pc (this, m) |
Set preconditioner. | |
procedure(ksp_method), deferred, pass | solve (this, ax, x, f, n, coef, blst, gs_h, niter) |
Solve the system. | |
procedure(ksp_method_coupled), deferred, pass | solve_coupled (this, ax, x, y, z, fx, fy, fz, n, coef, blstx, blsty, blstz, gs_h, niter) |
Solve the system (coupled version). | |
procedure, pass(this) | monitor_start (this, name) |
Monitor start. | |
procedure, pass(this) | monitor_stop (this) |
Monitor stop. | |
procedure, pass(this) | monitor_iter (this, iter, rnorm) |
Monitor iteration. | |
procedure, pass(this) | is_converged (this, iter, residual) |
Check for convergence. | |
procedure(ksp_t_free), deferred, pass | free (this) |
Destructor. | |
Definition at line 54 of file pipecg_device.F90.
procedure, pass(this) pipecg_device::pipecg_device_t::free | ( | class(pipecg_device_t), intent(inout) | this | ) |
Definition at line 81 of file pipecg_device.F90.
|
pure virtualinherited |
Definition at line 95 of file krylov.f90.
procedure, pass(this) pipecg_device::pipecg_device_t::init | ( | class(pipecg_device_t), intent(inout), target | this, |
integer, intent(in) | n, | ||
integer, intent(in) | max_iter, | ||
class(pc_t), intent(in), optional, target | m, | ||
real(kind=rp), intent(in), optional | rel_tol, | ||
real(kind=rp), intent(in), optional | abs_tol, | ||
logical, intent(in), optional | monitor | ||
) |
Definition at line 80 of file pipecg_device.F90.
|
inherited |
This function checks if the Krylov solver has converged. The solver is considered converged if the residual is less than the absolute tolerance.
residual | Residual |
iter | Iteration number |
Definition at line 93 of file krylov.f90.
Definition at line 79 of file krylov.f90.
|
inherited |
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 77 of file krylov.f90.
|
inherited |
Definition at line 91 of file krylov.f90.
|
inherited |
Definition at line 87 of file krylov.f90.
Definition at line 89 of file krylov.f90.
|
inherited |
M | The preconditioner. |
Definition at line 81 of file krylov.f90.
procedure, pass(this) pipecg_device::pipecg_device_t::solve | ( | class(pipecg_device_t), intent(inout) | this, |
class(ax_t), intent(in) | ax, | ||
type(field_t), intent(inout) | x, | ||
real(kind=rp), dimension(n), intent(in) | 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 | ||
) |
Definition at line 82 of file pipecg_device.F90.
|
pure virtualinherited |
Definition at line 83 of file krylov.f90.
procedure, pass(this) pipecg_device::pipecg_device_t::solve_coupled | ( | class(pipecg_device_t), intent(inout) | this, |
class(ax_t), intent(in) | ax, | ||
type(field_t), intent(inout) | x, | ||
type(field_t), intent(inout) | y, | ||
type(field_t), intent(inout) | z, | ||
real(kind=rp), dimension(n), intent(in) | fx, | ||
real(kind=rp), dimension(n), intent(in) | fy, | ||
real(kind=rp), dimension(n), intent(in) | fz, | ||
integer, intent(in) | n, | ||
type(coef_t), intent(inout) | coef, | ||
type(bc_list_t), intent(inout) | blstx, | ||
type(bc_list_t), intent(inout) | blsty, | ||
type(bc_list_t), intent(inout) | blstz, | ||
type(gs_t), intent(inout) | gs_h, | ||
integer, intent(in), optional | niter | ||
) |
Definition at line 83 of file pipecg_device.F90.
|
pure virtualinherited |
Definition at line 85 of file krylov.f90.
Definition at line 71 of file krylov.f90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::alpha |
Definition at line 64 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::alpha_d = C_NULL_PTR |
Definition at line 75 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::beta |
Definition at line 65 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::beta_d = C_NULL_PTR |
Definition at line 76 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::gs_event = C_NULL_PTR |
Definition at line 78 of file pipecg_device.F90.
|
inherited |
Definition at line 73 of file krylov.f90.
|
inherited |
Definition at line 72 of file krylov.f90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::mi |
Definition at line 62 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::mi_d = C_NULL_PTR |
Definition at line 73 of file pipecg_device.F90.
|
inherited |
Definition at line 74 of file krylov.f90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::ni |
Definition at line 63 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::ni_d = C_NULL_PTR |
Definition at line 74 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::p |
Definition at line 55 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::p_d = C_NULL_PTR |
Definition at line 66 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::q |
Definition at line 56 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::q_d = C_NULL_PTR |
Definition at line 67 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::r |
Definition at line 57 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::r_d = C_NULL_PTR |
Definition at line 68 of file pipecg_device.F90.
Definition at line 70 of file krylov.f90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::s |
Definition at line 58 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::s_d = C_NULL_PTR |
Definition at line 69 of file pipecg_device.F90.
real(kind=rp), dimension(:,:), allocatable pipecg_device::pipecg_device_t::u |
Definition at line 59 of file pipecg_device.F90.
type(c_ptr), dimension(:), allocatable pipecg_device::pipecg_device_t::u_d |
Definition at line 77 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::u_d_d = C_NULL_PTR |
Definition at line 70 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::w |
Definition at line 60 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::w_d = C_NULL_PTR |
Definition at line 71 of file pipecg_device.F90.
real(kind=rp), dimension(:), allocatable pipecg_device::pipecg_device_t::z |
Definition at line 61 of file pipecg_device.F90.
type(c_ptr) pipecg_device::pipecg_device_t::z_d = C_NULL_PTR |
Definition at line 72 of file pipecg_device.F90.