Go to the documentation of this file.
36 void Foam::meshReader::calcPointCells()
const
38 static const label UNIT_POINT_CELLS = 12;
43 <<
"pointCells already calculated"
54 ptCells[i].setSize(UNIT_POINT_CELLS);
72 const faceList& faces = cFaces[celli];
82 label curPoint = labels[j];
83 labelList& curPointCells = ptCells[curPoint];
84 label curCount = cellCount[curPoint];
91 if (curPointCells[
f] == celli)
101 if (curPointCells.size() <= curCount)
103 curPointCells.setSize(curPointCells.size()*2);
107 curPointCells[curCount] = celli;
110 cellCount[curPoint]++;
123 ptCells[i].setSize(cellCount[i]);
124 if (cellCount[i] > 0)
126 oldToNew[i] = pointi++;
141 adjustedPoints.setSize(
nPoints);
170 return *pointCellsPtr_;
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
static constexpr const zero Zero
Global zero.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void inplaceRenumber(const labelUList &oldToNew, IntListType &input)
Inplace renumber the values (not the indices) of a list.
#define forAll(list, i)
Loop across all elements in 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.
messageStream Info
Information stream (uses stdout - output is on the master only)
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< faceList > faceListList
A List of faceList.
List< face > faceList
A List of faces.
void inplaceReorder(const labelUList &oldToNew, ListType &input, const bool prune=false)
Inplace reorder the elements of a list.
pointField points_
Points supporting the mesh.