Go to the documentation of this file.
41 <<
"edgeFaces already calculated"
56 const label nThreads = 3 * omp_get_num_procs();
60 # pragma omp parallel num_threads(nThreads) if( edges.size() > 10000 )
64 # pragma omp for schedule(static)
70 # pragma omp for schedule(static)
81 const face&
f = faces[faceI];
85 if(
f.faceEdge(eI) == ee )
104 # pragma omp for schedule(static)
116 const face&
f = faces[faceI];
120 if(
f.faceEdge(eI) == ee )
128 edgeFaceAddr.
setRow(edgeI, eFaces);
141 if( omp_in_parallel() )
144 "const VRWGraph& polyMeshGenAddressing::edgeFaces() const"
145 ) <<
"Calculating addressing inside a parallel region."
void calcEdgeFaces() const
Calculate edge-face addressing.
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
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
VRWGraph * efPtr_
Edge-faces.
const faceListPMG & faces() const
access to faces
const VRWGraph & pointFaces() 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 VRWGraph & edgeFaces() const
#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.
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 size(const label)
Override size to be inconsistent with allocated storage.
void append(const T &e)
Append an element at the end of the list.
void setSizeAndRowSize(const ListType &)
set the size and row sizes