40 <<
"Cannot gather values for non-contiguous types" <<
endl
58 reinterpret_cast<const char*
>(&localValue),
69 allValues[0] = localValue;
86 <<
"Cannot scatter values for non-contiguous types" <<
endl
100 <<
"Attempting to send " << allValues.
size()
101 <<
" values to " << nproc <<
" processors" <<
endl
109 reinterpret_cast<char*
>(&localValue),
118 if (allValues.
empty())
124 localValue = allValues[0];
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label len)
Adjust allocated size of list.
label nProcs() const noexcept
Number of ranks associated with PstreamBuffers.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
char * data_bytes() noexcept
Return pointer to the underlying array serving as data storage,.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
const char * cdata_bytes() const noexcept
Return pointer to the underlying array serving as data storage,.
void size(const label n)
Older name for setAddressableSize.
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 List< T > listGatherValues(const T &localValue, const label communicator=worldComm)
Gather individual values into list locations.
static void mpiScatter(const char *sendData, int sendCount, char *recvData, int recvCount, const label communicator=worldComm)
Send identically-sized char data to all ranks.
static T listScatterValues(const UList< T > &allValues, const label communicator=worldComm)
Scatter individual values from list locations.
static bool & parRun() noexcept
Test if this a parallel run.
splitCell * master() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)
A template class to specify that a data type can be considered as being contiguous in memory.