53 map.writeList(
os) <<
nl;
88 mapDistributeBase::readDict(
dict);
102 constructSize_ =
dict.
get<label>(
"constructSize");
114 const dictionary& subdict =
dict.
subDict(
"constructMap");
116 subdict.
readEntry(
"flip", constructHasFlip_);
117 subdict.readEntry(
"maps", constructMap_);
146 is >> map.constructSize_
147 >> map.subMap_ >> map.constructMap_
148 >> map.subHasFlip_ >> map.constructHasFlip_
174 const InfoProxy<mapDistributeBase>& ip
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;
List< labelList > labelListList
A List of labelList.
void size(const label n)
Older name for setAddressableSize.
Ostream & indent(Ostream &os)
Indent stream.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
Begin list [isseparator].
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
mapDistributeBase()
Default construct (uses worldComm)
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...
void readDict(const dictionary &dict)
Read entries from dictionary format.
Istream & operator>>(Istream &, directionInfo &)
virtual Ostream & endBlock()
Write end block group.
Class containing processor-to-processor mapping information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
static Ostream & printMaps(Ostream &os, const labelListList &maps)
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
static void writeMaps(Ostream &os, const word &key, const labelListList &maps)
streamFormat format() const noexcept
Get the current stream format.
void writeEntries(Ostream &os) const
Write entries in dictionary format.