Type for Chebyshev iteration using TreeAMG matvec.
More...
|
| procedure, pass(this) | init (this, n, lvl, max_iter) |
| | Initialization of chebyshev.
|
| procedure, pass(this) | solve (this, x, f, n, amg, zero_init) |
| | Chebyshev smoother From Saad's iterative methods textbook.
|
| procedure, pass(this) | comp_eig (this, amg, n) |
| | Power method to approximate largest eigenvalue.
|
| procedure, pass(this) | device_solve (this, x, f, x_d, f_d, n, amg, zero_init) |
| | Chebyshev smoother From Saad's iterative methods textbook.
|
| procedure, pass(this) | device_comp_eig (this, amg, n) |
| | Power method to approximate largest eigenvalue.
|
| procedure, pass(this) | free (this) |
| | free cheby data
|
|
| real(kind=rp), dimension(:), allocatable | d |
| type(c_ptr) | d_d = C_NULL_PTR |
| real(kind=rp), dimension(:), allocatable | w |
| type(c_ptr) | w_d = C_NULL_PTR |
| real(kind=rp), dimension(:), allocatable | r |
| type(c_ptr) | r_d = C_NULL_PTR |
| real(kind=rp), dimension(:), allocatable | ev |
| | Saved eigenvector, to restart the power method after a small operator change. Allocated only if warm_start_eigs.
|
| type(c_ptr) | ev_d = C_NULL_PTR |
| real(kind=rp) | tha |
| real(kind=rp) | dlt |
| integer | lvl |
| integer | n |
| integer | power_its = 250 |
| integer | power_its_refresh = 20 |
| | Iterations to use when restarting from ev.
|
| logical | warm_start_eigs = .false. |
| | Restart the power method from ev instead of a random vector.
|
| logical | eigs_computed = .false. |
| | Whether ev holds a usable eigenvector yet.
|
| integer | max_iter = 10 |
| logical | recompute_eigs = .true. |
Definition at line 74 of file tree_amg_smoother.f90.
◆ comp_eig()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::comp_eig |
( |
class(amg_cheby_t), intent(inout) | this, |
|
|
type(tamg_hierarchy_t), intent(inout) | amg, |
|
|
integer, intent(in) | n ) |
◆ device_comp_eig()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::device_comp_eig |
( |
class(amg_cheby_t), intent(inout) | this, |
|
|
type(tamg_hierarchy_t), intent(inout) | amg, |
|
|
integer, intent(in) | n ) |
◆ device_solve()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::device_solve |
( |
class(amg_cheby_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(n), intent(inout) | x, |
|
|
real(kind=rp), dimension(n), intent(inout) | f, |
|
|
type(c_ptr) | x_d, |
|
|
type(c_ptr) | f_d, |
|
|
integer, intent(in) | n, |
|
|
class(tamg_hierarchy_t), intent(inout) | amg, |
|
|
logical, intent(in), optional | zero_init ) |
- Parameters
-
| x | The solution to be returned |
| f | The right-hand side |
| n | Number of dofs |
| amg | The TreeAMG object |
Definition at line 101 of file tree_amg_smoother.f90.
◆ free()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::free |
( |
class(amg_cheby_t), intent(inout), target | this | ) |
|
◆ init()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::init |
( |
class(amg_cheby_t), intent(inout), target | this, |
|
|
integer, intent(in) | n, |
|
|
integer, intent(in) | lvl, |
|
|
integer, intent(in) | max_iter ) |
- Parameters
-
| n | Number of dofs |
| lvl | The tamg hierarchy level on which the iterations are to be applied |
| max_iter | The number of iterations (chebyshev degree) |
Definition at line 98 of file tree_amg_smoother.f90.
◆ solve()
| procedure, pass(this) tree_amg_smoother::amg_cheby_t::solve |
( |
class(amg_cheby_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(n), intent(inout) | x, |
|
|
real(kind=rp), dimension(n), intent(inout) | f, |
|
|
integer, intent(in) | n, |
|
|
class(tamg_hierarchy_t), intent(inout) | amg, |
|
|
logical, intent(in), optional | zero_init ) |
- Parameters
-
| x | The solution to be returned |
| f | The right-hand side |
| n | Number of dofs |
| amg | The TreeAMG object |
Definition at line 99 of file tree_amg_smoother.f90.
| real(kind=rp), dimension(:), allocatable tree_amg_smoother::amg_cheby_t::d |
◆ d_d
| type(c_ptr) tree_amg_smoother::amg_cheby_t::d_d = C_NULL_PTR |
◆ dlt
| real(kind=rp) tree_amg_smoother::amg_cheby_t::dlt |
◆ eigs_computed
| logical tree_amg_smoother::amg_cheby_t::eigs_computed = .false. |
◆ ev
| real(kind=rp), dimension(:), allocatable tree_amg_smoother::amg_cheby_t::ev |
◆ ev_d
| type(c_ptr) tree_amg_smoother::amg_cheby_t::ev_d = C_NULL_PTR |
◆ lvl
| integer tree_amg_smoother::amg_cheby_t::lvl |
◆ max_iter
| integer tree_amg_smoother::amg_cheby_t::max_iter = 10 |
| integer tree_amg_smoother::amg_cheby_t::n |
◆ power_its
| integer tree_amg_smoother::amg_cheby_t::power_its = 250 |
◆ power_its_refresh
| integer tree_amg_smoother::amg_cheby_t::power_its_refresh = 20 |
| real(kind=rp), dimension(:), allocatable tree_amg_smoother::amg_cheby_t::r |
◆ r_d
| type(c_ptr) tree_amg_smoother::amg_cheby_t::r_d = C_NULL_PTR |
◆ recompute_eigs
| logical tree_amg_smoother::amg_cheby_t::recompute_eigs = .true. |
◆ tha
| real(kind=rp) tree_amg_smoother::amg_cheby_t::tha |
| real(kind=rp), dimension(:), allocatable tree_amg_smoother::amg_cheby_t::w |
◆ w_d
| type(c_ptr) tree_amg_smoother::amg_cheby_t::w_d = C_NULL_PTR |
◆ warm_start_eigs
| logical tree_amg_smoother::amg_cheby_t::warm_start_eigs = .false. |
The documentation for this type was generated from the following file: