UPstreamGatherScatter.C File Reference
Include dependency graph for UPstreamGatherScatter.C:

Go to the source code of this file.

Macros

#define Pstream_CommonRoutines(Native)
 
#define Pstream_CommonRoutines(Native)
 

Detailed Description

Original source file UPstreamGatherScatter.C

Definition in file UPstreamGatherScatter.C.

Macro Definition Documentation

◆ Pstream_CommonRoutines [1/2]

#define Pstream_CommonRoutines (   Native)
Value:
( \
const Native* sendData, \
int sendCount, \
\
Native* recvData, \
int recvCount, \
const label comm \
) \
{ \
std::memmove(recvData, sendData, recvCount*sizeof(Native)); \
} \
\
\
( \
const Native* sendData, \
int sendCount, \
\
Native* recvData, \
int recvCount, \
const label comm \
) \
{ \
std::memmove(recvData, sendData, recvCount*sizeof(Native)); \
}
static void mpiGather(const char *sendData, int sendCount, char *recvData, int recvCount, const label communicator=worldComm)
Receive identically-sized char data from all ranks.
static void mpiScatter(const char *sendData, int sendCount, char *recvData, int recvCount, const label communicator=worldComm)
Send identically-sized char data to all ranks.

Definition at line 70 of file UPstreamGatherScatter.C.

◆ Pstream_CommonRoutines [2/2]

#define Pstream_CommonRoutines (   Native)
Value:
( \
const Native* sendData, \
int sendCount, \
\
Native* recvData, \
const UList<int>& recvCounts, \
const UList<int>& recvOffsets, \
const label comm \
) \
{ \
/* recvCounts[0] may be invalid - use sendCount instead */ \
std::memmove(recvData, sendData, sendCount*sizeof(Native)); \
} \
\
( \
const Native* sendData, \
const UList<int>& sendCounts, \
const UList<int>& sendOffsets, \
\
Native* recvData, \
int recvCount, \
const label comm \
) \
{ \
std::memmove(recvData, sendData, recvCount*sizeof(Native)); \
}
static void gather(const char *sendData, int sendCount, char *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm)
Receive variable length char data from all ranks.
static void scatter(const char *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, char *recvData, int recvCount, const label communicator=worldComm)
Send variable length char data to all ranks.

Definition at line 70 of file UPstreamGatherScatter.C.