DistDir
|
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... | |
Functions to map to and from RD decomposition which generate a t_bucket object
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).
[in] | bucket | t_bucket object containing information about the RD decomposition |
[in] | idxlist | t_idxlist object containing the MPI rank index list which needs to be mapped to the RD decomposition |
[in] | idxlist_local | array containing the local indices of the index list |
[in] | nbuckets | number of buckets |
[in] | comm | MPI communicator containing all the MPI procs involved in the RD decomposition |
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.
[in] | src_bucket | t_bucket object containing information about the RD decomposition for the source idxlist |
[in] | dst_bucket | t_bucket object containing information about the RD decomposition for the destination idxlist |
[in] | idxlist_local | array containing the local indices of the index list in the original decomposition |
[in] | idxlist_size | size of the idxlist owned by the MPI rank in the original decomposition |
[in] | nbuckets | number of buckets |
[in] | comm | MPI communicator containing all the MPI procs involved in the RD decomposition |