40 Pout<<
"primitiveMesh::edgeCells() : calculating edgeCells" <<
endl;
67 return edgeCells()[edgeI];
76 const labelList& eFaces = edgeFaces(edgeI, eFacesStorage);
83 label facei = eFaces[i];
86 label ownCelli = own[facei];
91 if (storage[j] == ownCelli)
104 if (isInternalFace(facei))
106 label neiCelli = nei[facei];
110 if (storage[j] == neiCelli)
131 return edgeCells(edgeI, labels_);
Various functions to operate on Lists.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
const labelListList & cellEdges() const
const labelListList & edgeCells() const
label nEdges() const
Number of mesh edges.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void invertManyToMany(const label len, const UList< InputIntListType > &input, List< OutputIntListType > &output)
Invert many-to-many.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
A List of labelList.
errorManip< error > abort(error &err)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
#define forAll(list, i)
Loop across all elements in list.