53 map.writeList(
os) <<
nl;
88 mapDistributeBase::readDict(
dict);
102 constructSize_ =
dict.
get<label>(
"constructSize");
116 subdict.
readEntry(
"flip", constructHasFlip_);
117 subdict.
readEntry(
"maps", constructMap_);
146 is >> map.constructSize_
147 >> map.subMap_ >> map.constructMap_
148 >> map.subHasFlip_ >> map.constructHasFlip_
177 const auto& map = ip.t_;
183 os <<
indent <<
"local { flip " << map.subHasFlip()
185 map.subMapSizes().writeList(
os) <<
"; }" <<
nl;
187 os <<
indent <<
"remote { flip " << map.constructHasFlip()
189 map.constructMapSizes().writeList(
os) <<
"; }" <<
nl;
streamFormat format() const noexcept
Get the current stream format.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
A helper class for outputting values to Ostream.
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,...
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Class containing processor-to-processor mapping information.
mapDistributeBase()
Default construct (uses worldComm)
void readDict(const dictionary &dict)
Read entries from dictionary format.
void writeEntries(Ostream &os) const
Write entries in dictionary format.
@ END_STATEMENT
End entry [isseparator].
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
static Ostream & printMaps(Ostream &os, const labelListList &maps)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & indent(Ostream &os)
Indent stream.
static void writeMaps(Ostream &os, const word &key, const labelListList &maps)
Istream & operator>>(Istream &, directionInfo &)
constexpr char nl
The newline '\n' character (0x0a)