Yet Another eXchange Tool  DO_NOT_EDIT_HERE
Functions
xt_redist_single_array_base.h File Reference
#include <mpi.h>
#include "xt/xt_xmap.h"
#include "xt/xt_redist.h"
#include "xt_redist_internal.h"
Include dependency graph for xt_redist_single_array_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Xt_redist xt_redist_single_array_base_new (int nsend, int nrecv, struct Xt_redist_msg *send_msgs, struct Xt_redist_msg *recv_msgs, MPI_Comm comm)
 

Detailed Description

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_redist_single_array_base.h.

Function Documentation

◆ xt_redist_single_array_base_new()

Xt_redist xt_redist_single_array_base_new ( int  nsend,
int  nrecv,
struct Xt_redist_msg send_msgs,
struct Xt_redist_msg recv_msgs,
MPI_Comm  comm 
)

constructor for a redistribution using point to point communication for the exchange

Parameters
[in]nsendnumber of send messages
[in]nrecvnumber of receive messages
[in]send_msgsarray with send messages
[in]recv_msgsarray with receive messages
[in]commMPI communicator that is to be used for the communication
Remarks
The send_msgs and recv_msgs arrays will be used directly without copying them and must be malloc'ed therefore. When the destructor xt_redist_delete is called, the arrays, the associated MPI data types, and the MPI communicator will be free'd via free(), MPI_Type_free() and MPI_Comm_free() respectively.

Definition at line 117 of file xt_redist_single_array_base.c.

Here is the call graph for this function:
Here is the caller graph for this function: