56 Istream&
operator>>(Istream& is, globalIndex& gi);
57 Ostream&
operator<<(Ostream& os,
const globalIndex& gi);
87 const label localSize,
182 gather(offsets_, comm, procIDs, fld, allFld, tag, commsType);
212 gather(offsets_, comm, procIDs, fld, tag, commsType);
242 scatter(offsets_, comm, procIDs, allFld, fld, tag, commsType);
bool isLocal(const label i) const
Is on local processor.
static void gather(const labelUList &offsets, const label comm, const labelList &procIDs, const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::commsTypes::nonBlocking)
Collect data in processor order on master (== procIDs[0]).
commsTypes
Types of communications.
static void scatter(const labelUList &offsets, const label comm, const labelList &procIDs, const UList< Type > &allFld, UList< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::commsTypes::nonBlocking)
Distribute data in processor order. Requires fld to be sized!
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
friend Ostream & operator<<(Ostream &os, const globalIndex &gi)
static int & msgType()
Message tag of standard messages.
friend Istream & operator>>(Istream &is, globalIndex &gi)
label offset(const label proci) const
Start of proci data.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
globalIndex()
Construct null.
Istream & operator>>(Istream &, directionInfo &)
label size() const
Global sum of localSizes.
label toLocal(const label i) const
From global to local on current processor.
labelList & offsets()
Change after construction.
label whichProcID(const label i) const
Which processor does global come from? Binary search.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label toGlobal(const label i) const
From local to global.
Ostream & operator<<(Ostream &, const ensightPart &)
label localSize() const
My local size.