DistDir
Functions
Map

Functions

t_mapnew_map (t_idxlist *src_idxlist, t_idxlist *dst_idxlist, int stride, MPI_Comm comm)
 Create a new t_map structure. More...
 
t_mapextend_map_3d (t_map *map2d, int nlevels)
 Create a new t_map structure for 3D decomposition. More...
 
void delete_map (t_map *map)
 Clean memory of a t_map structure. More...
 

Detailed Description

User interface to generate a t_map object which contains information about the MPI communication mapping based on the provided source and destination idxlist

Function Documentation

◆ delete_map()

void delete_map ( t_map map)

Clean memory of a t_map structure.

Free all the memory of a t_map structure

Parameters
[in]mappointer to t_map structure

◆ extend_map_3d()

t_map* extend_map_3d ( t_map map2d,
int  nlevels 
)

Create a new t_map structure for 3D decomposition.

Create a map given an existing map based on 2D decomposition

Parameters
[in]map2dpointer to t_map structure based on 2D decomposition
[in]nlevelsnumber of vertical levels of the domain
Returns
t_map structure

◆ new_map()

t_map* new_map ( t_idxlist src_idxlist,
t_idxlist dst_idxlist,
int  stride,
MPI_Comm  comm 
)

Create a new t_map structure.

Create a map given a source index list and a destination index list

Parameters
[in]src_idxlistpointer to source index list
[in]dst_idxlistpointer to destination index list
[in]stridebucket stride
[in]commMPI communicator containing all the MPI procs involved in the exchange
Returns
t_map structure