Go to the documentation of this file.
36 static const label UNIT_POINT_CELLS = 12;
41 <<
"pointCells already calculated"
52 ptCells[i].
setSize(UNIT_POINT_CELLS);
70 const faceList& faces = cFaces[cellI];
80 label curPoint = labels[j];
81 labelList& curPointCells = ptCells[curPoint];
82 label curCount = cellCount[curPoint];
89 if (curPointCells[
f] == cellI)
99 if (curPointCells.
size() <= curCount)
105 curPointCells[curCount] = cellI;
108 cellCount[curPoint]++;
121 ptCells[i].
setSize(cellCount[i]);
122 if (cellCount[i] > 0)
124 oldToNew[i] = pointI++;
139 adjustedPoints.setSize(
nPoints);
168 return *pointCellsPtr_;
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelListList & pointCells() const
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
errorManip< error > abort(error &err)
void calcPointCells() const
Calculate pointCells.
void setSize(const label)
Reset size of List.
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
labelListList * pointCellsPtr_
Point-cell addressing. Used for topological analysis.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
pointField points_
Points supporting the mesh.
faceListList & cellFaces() const
Return list of faces for every cell.