47 auto outIter = list.begin();
49 for (
const face&
f : faces)
66 auto outIter = list.begin();
68 for (
const face&
f : faces)
88 auto outIter = list.begin();
91 for (
const label
cellId : addr)
93 *outIter = meshCells[
cellId].size();
113 for (
const label
cellId : addr)
115 nTotFaces += meshCells[
cellId].size();
120 auto outIter = list.begin();
123 for (
const label
cellId : addr)
125 for (
const label facei : meshCells[
cellId])
127 *outIter = meshFaces[facei].size();
139 const UList<face>& faces
142 for (
const face&
f : faces)
144 for (
const label labi :
f)
157 const UIndirectList<face>& faces
160 for (
const face&
f : faces)
162 for (
const label labi :
f)
175 const UList<cellShape>& shapes
178 for (
const cellShape& cellPoints : shapes)
184 for (
const label pointi : cellPoints)
186 os.write(pointi + 1);
197 const polyMesh&
mesh,
206 for (
const label
cellId : addr)
210 const face&
f = meshFaces[
faceId];
217 os.write(pointMap[
f[0]] + 1);
218 for (label pti =
f.size()-1; pti > 0; --pti)
220 os.write(pointMap[
f[pti]] + 1);
225 for (
const label pointi :
f)
227 os.write(pointMap[pointi] + 1);
246 for (
const label
cellId : addr)
250 const face&
f = meshFaces[
faceId];
258 for (label pti =
f.size()-1; pti > 0; --pti)
260 os.write(
f[pti] + 1);
265 for (
const label pointi :
f)
267 os.write(pointi + 1);
280 const ensightFaces::elemType etype,
291 parallel = parallel && Pstream::parRun();
293 const IntRange<int> senders =
296 ? Pstream::subProcs()
300 if (Pstream::master())
307 if (etype == ensightFaces::NSIDED)
313 if (Pstream::master())
316 os.writeLabels(send);
319 for (
const int proci : senders)
321 IPstream fromOther(Pstream::commsTypes::scheduled, proci);
324 os.writeLabels(recv);
331 Pstream::commsTypes::scheduled,
341 if (Pstream::master())
347 for (
const int proci : senders)
349 IPstream fromOther(Pstream::commsTypes::scheduled, proci);
350 List<face> recv(fromOther);
359 Pstream::commsTypes::scheduled,
371 const ensightFaces::elemType etype,
373 const UIndirectList<face>& faces,
382 parallel = parallel && Pstream::parRun();
384 const IntRange<int> senders =
387 ? Pstream::subProcs()
392 if (Pstream::master())
399 if (etype == ensightFaces::NSIDED)
405 if (Pstream::master())
408 os.writeLabels(send);
411 for (
const int proci : senders)
413 IPstream fromOther(Pstream::commsTypes::scheduled, proci);
416 os.writeLabels(recv);
423 Pstream::commsTypes::scheduled,
434 if (Pstream::master())
440 for (
const int proci : senders)
442 IPstream fromOther(Pstream::commsTypes::scheduled, proci);
443 List<face> recv(fromOther);
452 Pstream::commsTypes::scheduled,
464 const ensightFaces& part,
469 for (label typei=0; typei < ensightFaces::nTypes; ++typei)
471 const auto etype = ensightFaces::elemType(typei);
478 UIndirectList<face>(faces, part.faceIds(etype)),
488 const ensightFaces& part,
493 for (label typei=0; typei < ensightFaces::nTypes; ++typei)
495 const auto etype = ensightFaces::elemType(typei);
502 SubList<face>(faces, part.range(etype)),