37 void Foam::meshReader::calcPointCells()
const 39 static const label UNIT_POINT_CELLS = 12;
44 <<
"pointCells already calculated" 51 auto& ptCells = *pointCellsPtr_;
55 ptCells[i].setSize(UNIT_POINT_CELLS);
73 const faceList& faces = cFaces[celli];
83 label curPoint = labels[j];
84 labelList& curPointCells = ptCells[curPoint];
85 label curCount = cellCount[curPoint];
90 for (label
f = 0;
f < curCount;
f++)
92 if (curPointCells[
f] == celli)
102 if (curPointCells.size() <= curCount)
104 curPointCells.setSize(curPointCells.size()*2);
108 curPointCells[curCount] = celli;
111 cellCount[curPoint]++;
124 ptCells[i].setSize(cellCount[i]);
125 if (cellCount[i] > 0)
127 oldToNew[i] = pointi++;
142 adjustedPoints.setSize(
nPoints);
171 return *pointCellsPtr_;
List< faceList > faceListList
List of faceList.
void size(const label n)
Older name for setAddressableSize.
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.
void inplaceReorder(const labelUList &oldToNew, ListType &input, const bool prune=false)
Inplace reorder the elements of a list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
List of labelList.
pointField points_
Points supporting the mesh.
#define forAll(list, i)
Loop across all elements in list.
List< face > faceList
List of faces.
vectorField pointField
pointField is a vectorField.
errorManip< error > abort(error &err)
void inplaceRenumber(const labelUList &oldToNew, IntListType &input)
Inplace renumber the values within a list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< label > labelList
A List of labels.
static constexpr const zero Zero
Global zero (0)