30 void Foam::primitiveMesh::calcCells
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;
99 void Foam::primitiveMesh::calcCells()
const 105 Pout<<
"primitiveMesh::calcCells() : calculating cells" 114 <<
"cells already calculated" #define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void setSize(const label)
Reset size of List.
prefixOSstream Pout(cout, "Pout")
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
List< cell > cellList
list of cells