34 void Foam::meshReader::calcPointCells()
const
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)
101 curPointCells.setSize(curPointCells.size()*2);
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.
void size(const label)
Override size to be inconsistent with allocated storage.
pointField points_
Points supporting the mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
vectorField pointField
pointField is a vectorField.
List< labelList > labelListList
A List of labelList.
List< faceList > faceListList
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.