Go to the documentation of this file.
45 FatalErrorIn(
"polyMeshGenAddressing::calcCellEdges() const")
46 <<
"cellEdges already calculated"
60 const label nThreads = 3 * omp_get_num_procs();
64 # pragma omp parallel num_threads(nThreads) if( cells.size() > 10000 )
68 # pragma omp for schedule(static)
74 # pragma omp for schedule(static)
90 nEdges[cellI] = cEdges.
size();
103 # pragma omp for schedule(static)
113 const label faceI =
c[fI];
119 cellEdgeAddr.
setRow(cellI, cEdges);
132 if( omp_in_parallel() )
135 "const VRWGraph& polyMeshGenAddressing::cellEdges() const"
136 ) <<
"Calculating addressing inside a parallel region."
void calcCellEdges() const
Calculate edge list.
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 & cellEdges() const
const VRWGraph & faceEdges() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const cellListPMG & cells() const
access to cells
void appendIfNotIn(const T &e)
#define forAllRow(graph, rowI, index)
VRWGraph * cePtr_
Cell-edges.
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.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A cell is defined as a list of faces with extra functionality.
void setSizeAndRowSize(const ListType &)
set the size and row sizes