Loading...
Searching...
No Matches
UPstreamAllToAll.C File Reference
Include dependency graph for UPstreamAllToAll.C:

Go to the source code of this file.

Macros

#define Pstream_CommonRoutines(Type)
#define Pstream_CommonRoutines(Type)
#define Pstream_CommonRoutines(Type)

Detailed Description

Original source file UPstreamAllToAll.C

Definition in file UPstreamAllToAll.C.

Macro Definition Documentation

◆ Pstream_CommonRoutines [1/3]

#define Pstream_CommonRoutines ( Type)
Value:
( \
const UList<Type>& sendData, \
UList<Type>& recvData, \
const int communicator \
) \
{ \
recvData.deepCopy(sendData); \
}
static void allToAll(const UList< int32_t > &sendData, UList< int32_t > &recvData, const int communicator=UPstream::worldComm)
Exchange int32_t data with all ranks in communicator.

Definition at line 30 of file UPstreamAllToAll.C.

◆ Pstream_CommonRoutines [2/3]

#define Pstream_CommonRoutines ( Type)
Value:
( \
const UList<Type>& sendData, \
UList<Type>& recvData, \
const int tag, \
const int communicator \
) \
{ \
recvData.deepCopy(sendData); \
} \
( \
const Map<Type>& sendData, \
Map<Type>& recvData, \
const int tag, \
const int communicator \
) \
{ \
recvData = sendData; \
}
static void allToAllConsensus(const UList< int32_t > &sendData, UList< int32_t > &recvData, const int tag, const int communicator=UPstream::worldComm)
Exchange non-zero int32_t data between ranks [NBX].

Definition at line 30 of file UPstreamAllToAll.C.

◆ Pstream_CommonRoutines [3/3]

#define Pstream_CommonRoutines ( Type)
Value:
void Foam::UPstream::allToAllv \
( \
const Type* sendData, \
const UList<int>& sendCounts, \
const UList<int>& sendOffsets, \
Type* recvData, \
const UList<int>& recvCounts, \
const UList<int>& recvOffsets, \
const int communicator \
) \
{ \
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(Type)); \
}
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition error.H:600
errorManip< error > abort(error &err)
Definition errorManip.H:139

Definition at line 30 of file UPstreamAllToAll.C.