60 cellMap_.readDict(subdict);
67 subdict.readEntry(
"oldSize", nOldFaces_);
68 faceMap_.readDict(subdict);
75 subdict.
readEntry(
"oldSize", nOldPoints_);
76 pointMap_.readDict(subdict);
83 subdict.
readEntry(
"oldSizes", oldPatchSizes_);
84 subdict.readEntry(
"oldStarts", oldPatchStarts_);
85 subdict.readEntry(
"oldPointSizes", oldPatchNMeshPoints_);
86 patchMap_.readDict(subdict);
93 os.beginBlock(
"cellMap");
94 os.writeEntry(
"oldSize", nOldCells_);
95 cellMap_.writeEntries(
os);
102 os.beginBlock(
"faceMap");
103 os.writeEntry(
"oldSize", nOldFaces_);
104 faceMap_.writeEntries(
os);
111 os.beginBlock(
"pointMap");
112 os.writeEntry(
"oldSize", nOldPoints_);
113 pointMap_.writeEntries(
os);
120 os.beginBlock(
"patchMap");
121 oldPatchSizes_.writeEntry(
"oldSizes",
os);
122 oldPatchStarts_.writeEntry(
"oldStarts",
os);
123 oldPatchNMeshPoints_.writeEntry(
"oldPointSizes",
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;
195 os.beginBlock(
"cellMap");
196 os.writeEntry(
"oldSize", map.nOldCells());
197 os << map.cellMap().info();
200 os.beginBlock(
"faceMap");
201 os.writeEntry(
"oldSize", map.nOldFaces());
202 os << map.faceMap().info();
205 os.beginBlock(
"pointMap");
206 os.writeEntry(
"oldSize", map.nOldPoints());
207 os << map.pointMap().info();
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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,...
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
void writeFaceMapEntries(Ostream &os) const
Write faceMap in dictionary format.
void writePointMapEntries(Ostream &os) const
Write pointMap entries in dictionary format.
void readDict(const dictionary &dict)
Read entries from dictionary format.
void writeEntries(Ostream &os) const
Write all map entries in dictionary format.
mapDistributePolyMesh()
Default construct - uses worldComm.
void writeCellMapEntries(Ostream &os) const
Write cellMap in dictionary format.
void writePatchMapEntries(Ostream &os) const
Write patchMap in dictionary format.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
constexpr char nl
The newline '\n' character (0x0a).