Go to the documentation of this file.
37 Pout<<
"primitiveMesh::calcCellCells() : calculating cellCells"
54 <<
"cellCells already calculated"
80 forAll(cellCellAddr, cellI)
82 cellCellAddr[cellI].setSize(ncc[cellI]);
88 label ownCellI = own[faceI];
89 label neiCellI = nei[faceI];
91 cellCellAddr[ownCellI][ncc[ownCellI]++] = neiCellI;
92 cellCellAddr[neiCellI][ncc[neiCellI]++] = ownCellI;
119 return cellCells()[cellI];
131 label faceI = cFaces[i];
133 if (faceI < nInternalFaces())
135 if (own[faceI] == cellI)
137 storage.
append(nei[faceI]);
141 storage.
append(own[faceI]);
153 return cellCells(cellI, labels_);
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
void calcCellCells() const
Calculate cell-cell addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void clear()
Clear the addressed list, i.e. set the size to zero.
const labelListList & cellCells() const
labelListList * ccPtr_
Cell-cells.
errorManip< error > abort(error &err)
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A cell is defined as a list of faces with extra functionality.