DistDir
Functions
Bucket

Functions

void map_idxlist_to_RD_decomp (t_bucket *bucket, t_idxlist *idxlist, int *idxlist_local, int nbuckets, MPI_Comm comm)
 Map a provided index list into a RD decomposition. More...
 
void map_RD_decomp_to_idxlist (t_bucket *src_bucket, t_bucket *dst_bucket, int *idxlist_local, int idxlist_size, int nbuckets, MPI_Comm comm)
 Map source and destination information in the RD decomposition to the original decompositions. More...
 

Detailed Description

Functions to map to and from RD decomposition which generate a t_bucket object

Function Documentation

◆ map_idxlist_to_RD_decomp()

void map_idxlist_to_RD_decomp ( t_bucket bucket,
t_idxlist idxlist,
int *  idxlist_local,
int  nbuckets,
MPI_Comm  comm 
)

Map a provided index list into a RD decomposition.

Each rank in the MPI communicator is part of the RD decomposition and receive information about the ranks owning the indices its bucket (subdomain of the RD decomposition).

Parameters
[in]buckett_bucket object containing information about the RD decomposition
[in]idxlistt_idxlist object containing the MPI rank index list which needs to be mapped to the RD decomposition
[in]idxlist_localarray containing the local indices of the index list
[in]nbucketsnumber of buckets
[in]commMPI communicator containing all the MPI procs involved in the RD decomposition

◆ map_RD_decomp_to_idxlist()

void map_RD_decomp_to_idxlist ( t_bucket src_bucket,
t_bucket dst_bucket,
int *  idxlist_local,
int  idxlist_size,
int  nbuckets,
MPI_Comm  comm 
)

Map source and destination information in the RD decomposition to the original decompositions.

Each rank owns information about source and destination in the original decompositions of its own indices. With that information, it can provide information to the original decompositions about the exchange.

Parameters
[in]src_buckett_bucket object containing information about the RD decomposition for the source idxlist
[in]dst_buckett_bucket object containing information about the RD decomposition for the destination idxlist
[in]idxlist_localarray containing the local indices of the index list in the original decomposition
[in]idxlist_sizesize of the idxlist owned by the MPI rank in the original decomposition
[in]nbucketsnumber of buckets
[in]commMPI communicator containing all the MPI procs involved in the RD decomposition