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;
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_);
#define forAll(list, i)
Loop across all elements in list.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void clear()
Clear the addressed list, i.e. set the size to zero.
A cell is defined as a list of faces with extra functionality.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
const labelListList & cellCells() const
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
prefixOSstream Pout(cout, "Pout")