32 const label localSize,
38 offsets_(
Pstream::nProcs(comm)+1)
53 offset += localSizes[proci];
58 <<
"Overflow : sum of sizes " << localSizes
59 <<
" exceeds capability of label (" <<
labelMax
60 <<
"). Please recompile with larger datatype for label."
63 offsets_[proci+1] =
offset;
82 offset += localSizes[proci];
87 <<
"Overflow : sum of sizes " << localSizes
88 <<
" exceeds capability of label (" <<
labelMax
89 <<
"). Please recompile with larger datatype for label."
92 offsets_[proci+1] =
offset;
113 return is >> gi.offsets_;
119 return os << gi.offsets_;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Inter-processor communications stream.
static void scatterList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Scatter data. Reverse of gatherList.
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static int & msgType()
Message tag of standard messages.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
label localSize() const
My local size.
globalIndex()
Construct null.
label offset(const label proci) const
Start of proci data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
static const label labelMax