39 Foam::pointFieldReconstructor::pointFieldReconstructor
48 procMeshes_(procMeshes),
49 pointProcAddressing_(pointProcAddressing),
50 boundaryProcAddressing_(boundaryProcAddressing),
51 patchPointAddressing_(procMeshes.size()),
60 const pointMesh& procMesh = procMeshes_[proci];
66 if (boundaryProcAddressing_[proci][patchi] >= 0)
68 labelList& procPatchAddr = patchPointAddressing_[proci][patchi];
72 mesh_.
boundary()[boundaryProcAddressing_[proci][patchi]]
76 forAll(patchPointLabels, pointi)
78 pointMap[patchPointLabels[pointi]] = pointi;
82 procMesh.
boundary()[patchi].meshPoints();
84 forAll(procPatchPoints, pointi)
86 procPatchAddr[pointi] =
89 pointProcAddressing_[proci][procPatchPoints[pointi]]
93 if (procPatchAddr.
size() &&
min(procPatchAddr) < 0)
96 <<
"Incomplete patch point addressing" 109 const IOobjectList& objects,
110 const wordRes& selected
115 nTotal += reconstructPointFields<scalar>(objects, selected);
116 nTotal += reconstructPointFields<vector>(objects, selected);
117 nTotal += reconstructPointFields<symmTensor>(objects, selected);
118 nTotal += reconstructPointFields<sphericalTensor>(objects, selected);
119 nTotal += reconstructPointFields<tensor>(objects, selected);
void size(const label n)
Older name for setAddressableSize.
label reconstructAllFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes())
Reconstruct and write all known field types.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static label size(const Mesh &mesh)
Return size. Number of points.
Mesh representing a set of points created from polyMesh.
#define forAll(list, i)
Loop across all elements in list.
void setSize(const label n)
Alias for resize()
label size() const noexcept
The number of entries in the list.
static int verbose_
Output verbosity when writing.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
const pointBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.