31 void Foam::primitiveMesh::calcCellCells()
const 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;
131 label faceI = cFaces[i];
135 if (own[faceI] == cellI)
137 storage.
append(nei[faceI]);
141 storage.
append(own[faceI]);
const labelListList & cellCells() const
A cell is defined as a list of faces with extra functionality.
void clear()
Clear the addressed list, i.e. set the size to zero.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
label nInternalFaces() const
List< label > labelList
A List of labels.
List< labelList > labelListList
A List of labelList.
bool hasCellCells() const
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
prefixOSstream Pout(cout,"Pout")