20 #ifndef LIBMESH_SFC_PARTITIONER_H 21 #define LIBMESH_SFC_PARTITIONER_H 24 #include "libmesh/partitioner.h" 68 virtual std::unique_ptr<Partitioner>
clone ()
const override 70 return std::make_unique<SFCPartitioner>(*this);
80 (sfc_type ==
"Morton"));
91 const unsigned int n)
override;
99 const unsigned int n)
override;
112 #endif // LIBMESH_SFC_PARTITIONER_H virtual void partition_range(MeshBase &mesh, MeshBase::element_iterator it, MeshBase::element_iterator end, const unsigned int n) override
Called by the SubdomainPartitioner to partition elements in the range (it, end).
The definition of the element_iterator struct.
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
SFCPartitioner & operator=(const SFCPartitioner &)=default
std::string _sfc_type
The type of space-filling curve to use.
SFCPartitioner()
Constructor.
The libMesh namespace provides an interface to certain functionality in the library.
This is the MeshBase class.
The Partitioner class provides a uniform interface for partitioning algorithms.
virtual ~SFCPartitioner()=default
PartitionerType
Defines an enum for mesh partitioner types.
virtual PartitionerType type() const override
virtual std::unique_ptr< Partitioner > clone() const override
The SFCPartitioner uses a Hilbert or Morton-ordered space filling curve to partition the elements...
void set_sfc_type(std::string sfc_type)
Sets the type of space-filling curve to use.