33 void Foam::sammMesh::calcPointCells()
const 35 static const label UNIT_POINT_CELLS = 12;
40 <<
"PointCells already calculated" 51 pc[i].setSize(UNIT_POINT_CELLS);
74 const faceList& faces = cellFaces_[celli];
84 label curPoint = labels[j];
86 label curCount = cellCount[curPoint];
93 if (curPointCells[
f] == celli)
105 if (curPointCells.size() <= curCount)
107 curPointCells.setSize(curPointCells.size()*2);
111 curPointCells[curCount] = celli;
114 cellCount[curPoint]++;
123 pc[i].setSize(cellCount[i]);
135 return *pointCellsPtr_;
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)