Module fd4_neigh_mod


Uses:
    module fd4_block_mod, only: fd4_r_k_link
    module fd4_globaldef_mod
    module fd4_mpitype_mod
    module kinds_mod
Types:
    public type fd4_neigh
Variables:
    integer (kind=i_k), public, parameter :: FD4_NEIGH_SEND = 1
    integer (kind=i_k), public, parameter :: FD4_NEIGH_RECV = 2
Subroutines and functions:
    private subroutine fd4_neigh_allocate (n, datatype_count)
    public subroutine fd4_neigh_deallocate (n)

Data related with a neighbor partition.

Author: Matthias Lieber


Description of Types

fd4_neigh

public type fd4_neigh
    type (fd4_mpitype), dimension (2) :: ghosttype
    type (fd4_r_k_link), dimension (2) :: minptr
    logical :: changed = .false.
end type fd4_neigh
Components:
changed flag to notify ghostcomm if partitioning has changed

Description of Subroutines and Functions

fd4_neigh_allocate

private subroutine fd4_neigh_allocate (n, datatype_count)
    type (fd4_neigh), intent(inout) :: n
    integer (kind=i_k), intent(in) :: datatype_count
end subroutine fd4_neigh_allocate
Parameters:
n pointer to fd4_neigh to allocate
datatype_count number of datatypes to allocate
Allocate all data of the fd4_neigh

fd4_neigh_deallocate

public subroutine fd4_neigh_deallocate (n)
    type (fd4_neigh), intent(inout) :: n
end subroutine fd4_neigh_deallocate
Parameters:
n pointer to fd4_neigh to deallocate
Deallocate all data of the fd4_neigh