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)
 

Detailed Description

Original source file UPstreamAllToAll.C

Definition in file UPstreamAllToAll.C.

Macro Definition Documentation

◆ Pstream_CommonRoutines [1/2]

#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 57 of file UPstreamAllToAll.C.

◆ Pstream_CommonRoutines [2/2]

#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]) \
{ \
<< "Number to send " << sendCounts[0] \
<< " does not equal number to receive " << recvCounts[0] \
<< Foam::abort(FatalError); \
} \
std::memmove(recvData, sendData, recvCounts[0]*sizeof(Native)); \
}
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:453
errorManip< error > abort(error &err)
Definition: errorManip.H:144

Definition at line 57 of file UPstreamAllToAll.C.