Type for a TreeAMG hierarchy.
More...
|
| procedure, pass(this) | init (this, ax, xh, coef, msh, gs_h, nlvls, bc_projector) |
| | Initialization of TreeAMG hierarchy.
|
| procedure, pass(this) | free (this) |
| | deallocate tamg hierarchy
|
| procedure, pass(this) | matvec (this, vec_out, vec_in, lvl_out) |
| | Wrapper for matrix vector product using the TreeAMG hierarchy structure b=Ax done as vec_out = A * vec_in.
|
| procedure, pass(this) | matvec_impl (this, vec_out, vec_in, lvl, lvl_out) |
| | Matrix vector product using the TreeAMG hierarchy structure b=Ax done as vec_out = A * vec_in This is done on a level by level basis.
|
| procedure, pass(this) | interp_f2c (this, vec_out, vec_in, lvl) |
| | Restriction operator for TreeAMG. vec_out = R * vec_in.
|
| procedure, pass(this) | interp_c2f (this, vec_out, vec_in, lvl) |
| | Prolongation operator for TreeAMG. vec_out = P * vec_in.
|
| procedure, pass(this) | interp_f2c_d (this, vec_out_d, vec_in_d, lvl) |
| procedure, pass(this) | interp_c2f_d (this, vec_out_d, vec_in_d, lvl, vec_out) |
| procedure, pass(this) | device_matvec (this, vec_out, vec_in, vec_out_d, vec_in_d, lvl_out) |
Definition at line 101 of file tree_amg.f90.
◆ device_matvec()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::device_matvec |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_in, |
|
|
type(c_ptr) | vec_out_d, |
|
|
type(c_ptr) | vec_in_d, |
|
|
integer, intent(in) | lvl_out ) |
◆ free()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::free |
( |
class(tamg_hierarchy_t), intent(inout) | this | ) |
|
◆ init()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::init |
( |
class(tamg_hierarchy_t), intent(inout), target | this, |
|
|
class(ax_t), intent(in), target | ax, |
|
|
type(space_t), intent(in), target | xh, |
|
|
type(coef_t), intent(in), target | coef, |
|
|
type(mesh_t), intent(in), target | msh, |
|
|
type(gs_t), intent(in), target | gs_h, |
|
|
integer, intent(in) | nlvls, |
|
|
type(scalar_bc_projector_t), intent(in), target | bc_projector ) |
- Parameters
-
| ax | Finest level matvec operator |
| Xh | Finest level field |
| coef | Finest level coeff thing |
| msh | Finest level mesh information |
| gs_h | Finest level gather scatter operator |
| nlvls | Number of levels for the TreeAMG hierarchy |
| bc_projector | Finest level BC projector |
Definition at line 116 of file tree_amg.f90.
◆ interp_c2f()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::interp_c2f |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_in, |
|
|
integer, intent(in) | lvl ) |
- Parameters
-
| vec_out | The vector to be returned. On level lvl |
| vec_in | The vector pased into operator. On level lvl-1 |
| lvl | The target level of the returned vector after prolongation (wrt tree traversal) |
Definition at line 121 of file tree_amg.f90.
◆ interp_c2f_d()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::interp_c2f_d |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
type(c_ptr) | vec_out_d, |
|
|
type(c_ptr) | vec_in_d, |
|
|
integer, intent(in) | lvl, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out ) |
◆ interp_f2c()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::interp_f2c |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_in, |
|
|
integer, intent(in) | lvl ) |
- Parameters
-
| vec_out | The vector to be returned. On level lvl |
| vec_in | The vector pased into operator. On level lvl-1 |
| lvl | The target level of the returned vector after restrction (wrt tree traversal) |
Definition at line 120 of file tree_amg.f90.
◆ interp_f2c_d()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::interp_f2c_d |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
type(c_ptr) | vec_out_d, |
|
|
type(c_ptr) | vec_in_d, |
|
|
integer, intent(in) | lvl ) |
◆ matvec()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::matvec |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_in, |
|
|
integer, intent(in) | lvl_out ) |
- Parameters
-
| vec_out | Result of Ax |
| vec_in | Vector to be multiplied by linear system. A * vec_in |
| lvl_out | Level of the TreeAMG hierarchy on which the matvec is done. This also specifies the hieararchy level of the incoming vector |
Definition at line 118 of file tree_amg.f90.
◆ matvec_impl()
| procedure, pass(this) tree_amg::tamg_hierarchy_t::matvec_impl |
( |
class(tamg_hierarchy_t), intent(inout) | this, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_out, |
|
|
real(kind=rp), dimension(:), intent(inout) | vec_in, |
|
|
integer, intent(in) | lvl, |
|
|
integer, intent(in) | lvl_out ) |
- Parameters
-
| vec_out | The vector to be returned by level lvl |
| vec_in | The vector pased to level lvl |
| lvl | The current level of the matvec (wrt tree traversal) |
| lvl_out | Level of the TreeAMG hierarchy on which the matvec is output. |
Definition at line 119 of file tree_amg.f90.
◆ ax
| class(ax_t), pointer tree_amg::tamg_hierarchy_t::ax |
◆ bc_projector
◆ coef
| type(coef_t), pointer tree_amg::tamg_hierarchy_t::coef |
◆ gs_h
| type(gs_t), pointer tree_amg::tamg_hierarchy_t::gs_h |
◆ lvl
| type(tamg_lvl_t), dimension(:), allocatable tree_amg::tamg_hierarchy_t::lvl |
◆ msh
| type(mesh_t), pointer tree_amg::tamg_hierarchy_t::msh |
◆ nlvls
| integer tree_amg::tamg_hierarchy_t::nlvls |
◆ xh
| type(space_t), pointer tree_amg::tamg_hierarchy_t::xh |
The documentation for this type was generated from the following file: