53 map.writeList(
os) <<
nl;
89 mapDistributeBase::readDict(
dict);
103 constructSize_ =
dict.
get<label>(
"constructSize");
117 subdict.
readEntry(
"flip", constructHasFlip_);
118 subdict.readEntry(
"maps", constructMap_);
147 is >> map.constructSize_
148 >> map.subMap_ >> map.constructMap_
149 >> map.subHasFlip_ >> map.constructHasFlip_
175 const InfoProxy<mapDistributeBase>& iproxy
178 const auto& map = *iproxy;
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;
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 List 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.
List< labelList > labelListList
List of labelList.
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, 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.
virtual Ostream & endEntry()
Write end entry (';') followed by newline.
mapDistributeBase() noexcept
Default construct (uses worldComm)
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.