53 map.writeList(
os) <<
nl;
103 constructSize_ =
dict.get<label>(
"constructSize");
117 subdict.readEntry(
"flip", constructHasFlip_);
118 subdict.readEntry(
"maps", constructMap_);
125 os.writeEntry(
"constructSize", constructSize_);
128 os.beginBlock(
"subMap");
129 os.writeEntry(
"flip", subHasFlip_);
134 os.beginBlock(
"constructMap");
135 os.writeEntry(
"flip", constructHasFlip_);
147 is >> map.constructSize_
148 >> map.subMap_ >> map.constructMap_
149 >> map.subHasFlip_ >> map.constructHasFlip_
175 const InfoProxy<mapDistributeBase>& iproxy
178 const auto& map = *iproxy;
182 os.writeEntry(
"constructSize", map.constructSize());
184 os <<
indent <<
"local { flip " << map.subHasFlip()
186 map.subMapSizes().writeList(
os) <<
"; }" <<
nl;
188 os <<
indent <<
"remote { flip " << map.constructHasFlip()
190 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,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & endEntry()
Write end entry (';') followed by newline.
bool empty() const noexcept
True if List 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,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
Class containing processor-to-processor mapping information.
mapDistributeBase() noexcept
Default construct (uses worldComm).
void readDict(const dictionary &dict)
Read entries from dictionary format.
void writeEntries(Ostream &os) const
Write entries in dictionary format.
label comm() const noexcept
The communicator used.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
constexpr auto key(const Type &t) noexcept
Helper function to return the enum value.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
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).