Go to the documentation of this file.
44 FatalErrorIn(
"polyMeshGenAddressing::calcCellPoints() const")
45 <<
"cellPoints already calculated"
60 const label nThreads = 3 * omp_get_num_procs();
61 # pragma omp parallel num_threads(nThreads) if( cells.size() > 10000 )
65 # pragma omp for schedule(static)
71 # pragma omp for schedule(static)
80 const face&
f = faces[
c[fI]];
99 # pragma omp for schedule(static)
108 const face&
f = faces[
c[fI]];
114 cellPointsAddr.
setRow(cellI, cPoints);
127 if( omp_in_parallel() )
130 "const VRWGraph& polyMeshGenAddressing::cellPoints() const"
131 ) <<
"Calculating addressing inside a parallel region."
void setRow(const label rowI, const ListType &l)
Set row with the list.
#define forAll(list, i)
Loop across all elements in list.
const polyMeshGenCells & mesh_
reference to the mesh
const VRWGraph & cellPoints() const
const faceListPMG & faces() const
access to faces
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
VRWGraph * cpPtr_
Cell-points.
const cellListPMG & cells() const
access to cells
void appendIfNotIn(const T &e)
errorManip< error > abort(error &err)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar c
Speed of light in a vacuum.
void calcCellPoints() const
Calculate cell-point addressing.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A face is a list of labels corresponding to mesh vertices.
A cell is defined as a list of faces with extra functionality.
void setSizeAndRowSize(const ListType &)
set the size and row sizes