Go to the documentation of this file.
38 label nCells = inNCells;
46 nCells =
max(nCells, own[faceI]);
74 forAll (cellFaceAddr, cellI)
76 cellFaceAddr[cellI].
setSize(ncf[cellI]);
82 label cellI = own[faceI];
84 cellFaceAddr[cellI][ncf[cellI]++] = faceI;
89 label cellI = nei[faceI];
93 cellFaceAddr[cellI][ncf[cellI]++] = faceI;
105 Pout<<
"primitiveMesh::calcCells() : calculating cells"
114 <<
"cells already calculated"
#define forAll(list, i)
Loop across all elements in list.
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
void calcCells() const
Calculate cell-face addressing.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour 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.
List< cell > cellList
list of cells
cellList * cfPtr_
Cell-faces.
errorManip< error > abort(error &err)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void setSize(const label)
Reset size of List.
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 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.