41 mapDistributePolyMesh::readDict(
dict);
60 cellMap_.readDict(subdict);
65 const dictionary& subdict =
dict.
subDict(
"faceMap");
68 faceMap_.readDict(subdict);
73 const dictionary& subdict =
dict.
subDict(
"pointMap");
75 subdict.
readEntry(
"oldSize", nOldPoints_);
76 pointMap_.readDict(subdict);
81 const dictionary& subdict =
dict.
subDict(
"patchMap");
83 subdict.
readEntry(
"oldSizes", oldPatchSizes_);
84 subdict.readEntry(
"oldStarts", oldPatchStarts_);
85 subdict.readEntry(
"oldPointSizes", oldPatchNMeshPoints_);
86 patchMap_.readDict(subdict);
95 cellMap_.writeEntries(
os);
104 faceMap_.writeEntries(
os);
113 pointMap_.writeEntries(
os);
124 patchMap_.writeEntries(
os);
131 writeCellMapEntries(
os);
134 writeFaceMapEntries(
os);
137 writePointMapEntries(
os);
140 writePatchMapEntries(
os);
150 is >> map.nOldPoints_
154 >> map.oldPatchSizes_
155 >> map.oldPatchStarts_
156 >> map.oldPatchNMeshPoints_
190 const InfoProxy<mapDistributePolyMesh>& iproxy
193 const auto& map = *iproxy;
197 os << map.cellMap().
info();
202 os << map.faceMap().
info();
207 os << map.pointMap().
info();
void writePointMapEntries(Ostream &os) const
Write pointMap entries in dictionary format.
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)
void writeEntries(Ostream &os) const
Write all map entries in dictionary format.
InfoProxy< IOstream > info() const noexcept
Return info proxy, used to print IOstream information to a stream.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
mapDistributePolyMesh()
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 writeCellMapEntries(Ostream &os) const
Write cellMap in dictionary format.
Istream & operator>>(Istream &, directionInfo &)
virtual Ostream & endBlock()
Write end block group.
void writeFaceMapEntries(Ostream &os) const
Write faceMap in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void writePatchMapEntries(Ostream &os) const
Write patchMap in dictionary format.
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.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
void readDict(const dictionary &dict)
Read entries from dictionary format.