|
|
@ -34,59 +34,45 @@
|
|
|
|
! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
! Basic (decoupled) aggregation algorithm. Based on the ideas in
|
|
|
|
!
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! The aggregator object hosts the aggregation method for building
|
|
|
|
|
|
|
|
! the multilevel hierarchy.
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! M. Brezina and P. Vanek, A black-box iterative solver based on a
|
|
|
|
! M. Brezina and P. Vanek, A black-box iterative solver based on a
|
|
|
|
! two-level Schwarz method, Computing, 63 (1999), 233-263.
|
|
|
|
! two-level Schwarz method, Computing, 63 (1999), 233-263.
|
|
|
|
! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
|
|
|
|
! P. Vanek, J. Mandel and M. Brezina, Algebraic Multigrid by Smoothed
|
|
|
|
! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
|
|
|
|
! Aggregation for Second and Fourth Order Elliptic Problems, Computing, 56
|
|
|
|
! 57 (2007), 1181-1196.
|
|
|
|
! (1996), 179-196.
|
|
|
|
!
|
|
|
|
!
|
|
|
|
module mld_c_dec_aggregator_mod
|
|
|
|
module mld_c_dec_aggregator_mod
|
|
|
|
|
|
|
|
|
|
|
|
use mld_c_base_aggregator_mod
|
|
|
|
use mld_c_base_aggregator_mod
|
|
|
|
!
|
|
|
|
!> \namespace mld_c_dec_aggregator_mod \class mld_c_dec_aggregator_type
|
|
|
|
! sm - class(mld_T_base_smoother_type), allocatable
|
|
|
|
!! \extends mld_c_base_aggregator_mod::mld_c_base_aggregator_type
|
|
|
|
! The current level preconditioner (aka smoother).
|
|
|
|
!!
|
|
|
|
! parms - type(mld_RTml_parms)
|
|
|
|
!! type, extends(mld_c_base_aggregator_type) :: mld_c_dec_aggregator_type
|
|
|
|
! The parameters defining the multilevel strategy.
|
|
|
|
!! procedure(mld_c_map_bld), nopass, pointer :: map_bld => null()
|
|
|
|
! ac - The local part of the current-level matrix, built by
|
|
|
|
!! end type
|
|
|
|
! coarsening the previous-level matrix.
|
|
|
|
!!
|
|
|
|
! desc_ac - type(psb_desc_type).
|
|
|
|
!! This is the simplest aggregation method: starting from the
|
|
|
|
! The communication descriptor associated to the matrix
|
|
|
|
!! strength-of-connection measure for defining the aggregation
|
|
|
|
! stored in ac.
|
|
|
|
!! presented in
|
|
|
|
! base_a - type(psb_Tspmat_type), pointer.
|
|
|
|
!!
|
|
|
|
! Pointer (really a pointer!) to the local part of the current
|
|
|
|
!! M. Brezina and P. Vanek, A black-box iterative solver based on a
|
|
|
|
! matrix (so we have a unified treatment of residuals).
|
|
|
|
!! two-level Schwarz method, Computing, 63 (1999), 233-263.
|
|
|
|
! We need this to avoid passing explicitly the current matrix
|
|
|
|
!! P. Vanek, J. Mandel and M. Brezina, Algebraic Multigrid by Smoothed
|
|
|
|
! to the routine which applies the preconditioner.
|
|
|
|
!! Aggregation for Second and Fourth Order Elliptic Problems, Computing, 56
|
|
|
|
! base_desc - type(psb_desc_type), pointer.
|
|
|
|
!! (1996), 179-196.
|
|
|
|
! Pointer to the communication descriptor associated to the
|
|
|
|
!!
|
|
|
|
! matrix pointed by base_a.
|
|
|
|
!! it achieves parallelization by simply acting on the local matrix,
|
|
|
|
! map - Stores the maps (restriction and prolongation) between the
|
|
|
|
!! i.e. by "decoupling" the subdomains.
|
|
|
|
! vector spaces associated to the index spaces of the previous
|
|
|
|
!! The data structure hosts a "map_bld" function pointer which allows to
|
|
|
|
! and current levels.
|
|
|
|
!! choose other ways to measure "strength-of-connection", of which the
|
|
|
|
!
|
|
|
|
!! Vanek-Brezina-Mandel is the default. More details are available in
|
|
|
|
! Methods:
|
|
|
|
!!
|
|
|
|
! Most methods follow the encapsulation hierarchy: they take whatever action
|
|
|
|
!! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
|
|
|
|
! is appropriate for the current object, then call the corresponding method for
|
|
|
|
!! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
|
|
|
|
! the contained object.
|
|
|
|
!! 57 (2007), 1181-1196.
|
|
|
|
! As an example: the descr() method prints out a description of the
|
|
|
|
!!
|
|
|
|
! level. It starts by invoking the descr() method of the parms object,
|
|
|
|
!! The map_bld method is used inside the implementation of build_tprol
|
|
|
|
! then calls the descr() method of the smoother object.
|
|
|
|
!!
|
|
|
|
!
|
|
|
|
|
|
|
|
! descr - Prints a description of the object.
|
|
|
|
|
|
|
|
! default - Set default values
|
|
|
|
|
|
|
|
! dump - Dump to file object contents
|
|
|
|
|
|
|
|
! set - Sets various parameters; when a request is unknown
|
|
|
|
|
|
|
|
! it is passed to the smoother object for further processing.
|
|
|
|
|
|
|
|
! check - Sanity checks.
|
|
|
|
|
|
|
|
! sizeof - Total memory occupation in bytes
|
|
|
|
|
|
|
|
! get_nzeros - Number of nonzeros
|
|
|
|
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
type, extends(mld_c_base_aggregator_type) :: mld_c_dec_aggregator_type
|
|
|
|
type, extends(mld_c_base_aggregator_type) :: mld_c_dec_aggregator_type
|
|
|
|