Go to the documentation of this file.
44 FatalErrorIn(
"polyMeshGenAddressing::calcFaceEdges() const")
45 <<
"faceEdges already calculated"
61 const label nThreads = 3 * omp_get_num_procs();
65 # pragma omp parallel num_threads(nThreads) if( faces.size() > 10000 )
69 # pragma omp for schedule(static)
72 nfe[faceI] = faces[faceI].
size();
84 # pragma omp for schedule(static)
95 const face&
f = faces[faceI];
98 if(
f.faceEdge(eI) == ee )
100 faceEdgesAddr[faceI][eI] = edgeI;
117 if( omp_in_parallel() )
120 "const VRWGraph& polyMeshGenAddressing::faceEdges() const"
121 ) <<
"Calculating addressing inside a parallel region."
void calcFaceEdges() const
Calculate face-edge addressing.
#define forAll(list, i)
Loop across all elements in list.
const polyMeshGenCells & mesh_
reference to the mesh
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const VRWGraph & faceEdges() const
const faceListPMG & faces() const
access to faces
const VRWGraph & pointFaces() const
VRWGraph * fePtr_
Face-edges.
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 forAllRow(graph, rowI, index)
errorManip< error > abort(error &err)
const edgeList & edges() const
Return mesh edges.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
label start() const
Return start vertex label.
label size() const
return the number of used elements
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A face is a list of labels corresponding to mesh vertices.
void setSizeAndRowSize(const ListType &)
set the size and row sizes