43#ifndef Foam_structuredRenumber_H
44#define Foam_structuredRenumber_H
58class structuredRenumber
69 const bool depthFirst_;
77 const bool depthFirst,
82 depthFirst_(depthFirst),
87 bool operator()(
const label a,
const label
b)
const;
101 const bool depthFirst_;
136 virtual bool needs_mesh()
const {
return true; }
A packed storage of objects of type <T> using an offset table for access.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
renumberMethod()
Default construct.
layerLess(const bool depthFirst, const labelList &order, const List< topoDistanceData< label > > &distance)
bool operator()(const label a, const label b) const
Renumbering according to mesh layers. depthFirst = true: first column gets ids 0.....
virtual ~structuredRenumber()=default
Destructor.
virtual bool needs_mesh() const
Renumbering method requires a polyMesh!
virtual labelList renumber(const labelListList &cellCells) const
Return the cell visit order (from ordered back to original cell id). Not implemented!
TypeName("structured")
Runtime type information.
virtual labelList renumber(const polyMesh &mesh) const
Return the cell visit order (from ordered back to original cell id).
virtual labelList renumber(const CompactListList< label > &cellCells) const
Return the cell visit order (from ordered back to original cell id). Not implemented!
For use with FaceCellWave. Determines topological distance to starting faces. Templated on passive tr...
A List of wordRe with additional matching capabilities.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
scalar distance(const vector &p1, const vector &p2)
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.