Macros
UPstreamAllToAll.C File Reference
Include dependency graph for UPstreamAllToAll.C:

Go to the source code of this file.

Macros

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

Detailed Description

Original source file UPstreamAllToAll.C

Definition in file UPstreamAllToAll.C.

Macro Definition Documentation

◆ Pstream_CommonRoutines [1/3]

#define Pstream_CommonRoutines (   Native)
Value:
( \
const UList<Native>& sendData, \
UList<Native>& recvData, \
const label comm \
) \
{ \
recvData.deepCopy(sendData); \
}
static void allToAll(const UList< int32_t > &sendData, UList< int32_t > &recvData, const label communicator=worldComm)
Exchange integer data with all processors (in the communicator).

Definition at line 83 of file UPstreamAllToAll.C.

◆ Pstream_CommonRoutines [2/3]

#define Pstream_CommonRoutines (   Native)
Value:
( \
const UList<Native>& sendData, \
UList<Native>& recvData, \
const int tag, \
const label comm \
) \
{ \
recvData.deepCopy(sendData); \
} \
( \
const Map<Native>& sendData, \
Map<Native>& recvData, \
const int tag, \
const label comm \
) \
{ \
recvData = sendData; \
}
static void allToAllConsensus(const UList< int32_t > &sendData, UList< int32_t > &recvData, const int tag, const label communicator=worldComm)
Exchange non-zero integer data with all ranks in the communicator using non-blocking consensus exchan...

Definition at line 83 of file UPstreamAllToAll.C.

◆ Pstream_CommonRoutines [3/3]

#define Pstream_CommonRoutines (   Native)
Value:
( \
const Native* sendData, \
const UList<int>& sendCounts, \
const UList<int>& sendOffsets, \
Native* recvData, \
const UList<int>& recvCounts, \
const UList<int>& recvOffsets, \
const label comm \
) \
{ \
if (recvCounts[0] != sendCounts[0]) \
{ \
FatalErrorInFunction \
<< "Number to send " << sendCounts[0] \
<< " does not equal number to receive " << recvCounts[0] \
} \
std::memmove(recvData, sendData, recvCounts[0]*sizeof(Native)); \
}
error FatalError
Error stream (stdout output on all processes), with additional &#39;FOAM FATAL ERROR&#39; header text and sta...
errorManip< error > abort(error &err)
Definition: errorManip.H:139
static void allToAll(const UList< int32_t > &sendData, UList< int32_t > &recvData, const label communicator=worldComm)
Exchange integer data with all processors (in the communicator).

Definition at line 83 of file UPstreamAllToAll.C.