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]);
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t 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.
label nInternalFaces() const
bool hasCellCells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
A cell is defined as a list of faces with extra functionality.
prefixOSstream Pout(cout, "Pout")
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
void clear()
Clear the addressed list, i.e. set the size to zero.
const labelListList & cellCells() const