Module fd4_part_zoltan_mod


Uses:
    module fd4_globaldef_mod
    module fd4_domain_mod
    module fd4_iter_mod
    module fd4_mpi_mod
    module rbtree_fd4_block_mod
    module stack3_mod
    module timing_mod
    module zoltan
Variables:
    type (fd4_domain), private, pointer :: zd => NULL ()
Subroutines and functions:
    public subroutine fd4_part_zoltan_init (domain, err)
    public subroutine fd4_part_zoltan_destroy (domain)
    public subroutine fd4_part_zoltan_set_param (domain, param, value)
    public subroutine fd4_part_zoltan (domain, local_blocks, blkmap_update, err)
    private integer function fd4_ZOLTAN_NUM_OBJ (data, ierr)
    private integer function fd4_ZOLTAN_NUM_GEOM (data, ierr)
    private subroutine fd4_ZOLTAN_OBJ_LIST (data, num_gid_entries, num_lid_entries, global_ids, local_ids, wgt_dim, obj_wgts, ierr)
    private subroutine fd4_ZOLTAN_GEOM (data, num_gid_entries, num_lid_entries, global_id, local_id, geom_vec, ierr)
    private subroutine fd4_zoltan_blkmap_boundary (domain)

Zoltan-based partitioning of an fd4_domain.

Highly experimental.

Author: Matthias Lieber

See also: module fd4_domain_mod, module fd4_balance_mod


Description of Subroutines and Functions

fd4_part_zoltan_init

public subroutine fd4_part_zoltan_init (domain, err)
    type (fd4_domain), intent(inout) :: domain
    integer (kind=i_k), intent(out) :: err
end subroutine fd4_part_zoltan_init
Parameters:
domain the domain
err error status: 0...ok

fd4_part_zoltan_destroy

public subroutine fd4_part_zoltan_destroy (domain)
    type (fd4_domain), intent(inout) :: domain
end subroutine fd4_part_zoltan_destroy
Parameters:
domain the domain

fd4_part_zoltan_set_param

public subroutine fd4_part_zoltan_set_param (domain, param, value)
    type (fd4_domain), intent(inout) :: domain
    character (len=*), intent(in) :: param
    character (len=*), intent(in) :: value
end subroutine fd4_part_zoltan_set_param
Parameters:
domain the domain

fd4_part_zoltan

public subroutine fd4_part_zoltan (domain, local_blocks, blkmap_update, err)
    type (fd4_domain), intent(inout) :: domain
    type (stack3), intent(inout) :: local_blocks
    logical, intent(in) :: blkmap_update
    integer (kind=i_k), intent(out) :: err
end subroutine fd4_part_zoltan
Parameters:
domain the domain
local_blocks stack3 of new local partition (differs from rank to rank)
blkmap_update update the full block map
err error status: 0...ok
Create a new partition using Zoltan.

fd4_ZOLTAN_NUM_OBJ

private integer function fd4_ZOLTAN_NUM_OBJ (data, ierr)
    integer (kind=Zoltan_INT), intent(in), dimension (*) :: data
    integer (kind=Zoltan_INT), intent(out) :: ierr
end function fd4_ZOLTAN_NUM_OBJ

fd4_ZOLTAN_NUM_GEOM

private integer function fd4_ZOLTAN_NUM_GEOM (data, ierr)
    integer (kind=Zoltan_INT), intent(in), dimension (*) :: data
    integer (kind=Zoltan_INT), intent(out) :: ierr
end function fd4_ZOLTAN_NUM_GEOM

fd4_ZOLTAN_OBJ_LIST

private subroutine fd4_ZOLTAN_OBJ_LIST (data, num_gid_entries, num_lid_entries, global_ids, local_ids, wgt_dim, obj_wgts, ierr)
    integer (kind=Zoltan_INT), intent(in), dimension (*) :: data
    integer (kind=Zoltan_INT), intent(in) :: num_gid_entries
    integer (kind=Zoltan_INT), intent(in) :: num_lid_entries
    integer (kind=Zoltan_INT), intent(out), dimension (*) :: global_ids
    integer (kind=Zoltan_INT), intent(inout), dimension (*) :: local_ids
    integer (kind=Zoltan_INT), intent(in) :: wgt_dim
    real (kind=Zoltan_FLOAT), intent(out), dimension (*) :: obj_wgts
    integer (kind=Zoltan_INT), intent(out) :: ierr
end subroutine fd4_ZOLTAN_OBJ_LIST

fd4_ZOLTAN_GEOM

private subroutine fd4_ZOLTAN_GEOM (data, num_gid_entries, num_lid_entries, global_id, local_id, geom_vec, ierr)
    integer (kind=Zoltan_INT), intent(in), dimension (*) :: data
    integer (kind=Zoltan_INT), intent(in) :: num_gid_entries
    integer (kind=Zoltan_INT), intent(in) :: num_lid_entries
    integer (kind=Zoltan_INT), intent(in) :: global_id
    integer (kind=Zoltan_INT), intent(in) :: local_id
    real (kind=Zoltan_DOUBLE), intent(out), dimension (*) :: geom_vec
    integer (kind=Zoltan_INT), intent(out) :: ierr
end subroutine fd4_ZOLTAN_GEOM

fd4_zoltan_blkmap_boundary

private subroutine fd4_zoltan_blkmap_boundary (domain)
    type (fd4_domain), intent(inout) :: domain
end subroutine fd4_zoltan_blkmap_boundary
Parameters:
domain the domain
Apply periodic boundary on blkmap.

Internal routine.