40 Pout<<
"primitiveMesh::edgeFaces() : calculating edgeFaces" <<
endl;
52 efPtr_ = std::make_unique<labelListList>(
nEdges());
63 DynamicList<label>& storage
68 return edgeFaces()[edgei];
75 const edge&
e = edges()[edgei];
84 while (i0 < pFaces0.size() && i1 < pFaces1.size())
86 const label f0 = pFaces0[i0];
87 const label f1 = pFaces1[i1];
105 const face&
f = faces()[f0];
106 const label fp0 =
f.
find(
e[0]);
128 return edgeFaces(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.
label rcIndex(const label i) const noexcept
The reverse circular index. The previous index in the list which returns to the last at the beginning...
void size(const label n)
Older name for setAddressableSize.
label find(const T &val) const
Find index of the first occurrence of the value.
label fcIndex(const label i) const noexcept
The forward circular index. The next index in the list which returns to the first at the end of the l...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
A face is a list of labels corresponding to mesh vertices.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
virtual const faceList & faces() const =0
Return faces.
bool hasEdgeFaces() const noexcept
const labelListList & pointFaces() const
const labelListList & edgeFaces() const
const labelListList & faceEdges() const
label nEdges() const
Number of mesh edges.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Namespace for handling debugging switches.
void invertManyToMany(const label len, const UList< InputIntListType > &input, List< OutputIntListType > &output)
Invert many-to-many.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.