20#ifndef LIBMESH_HILBERT_SFC_PARTITIONER_H
21#define LIBMESH_HILBERT_SFC_PARTITIONER_H
24#include "libmesh/sfc_partitioner.h"
26#include "libmesh/enum_partitioner_type.h"
69 virtual std::unique_ptr<Partitioner>
clone ()
const override
71 return std::make_unique<HilbertSFCPartitioner>(*
this);
80 const unsigned int n)
override
The HilbertSFCPartitioner uses a Hilbert space filling curve to partition the elements.
virtual std::unique_ptr< Partitioner > clone() const override
HilbertSFCPartitioner(HilbertSFCPartitioner &&)=default
HilbertSFCPartitioner(const HilbertSFCPartitioner &)=default
Copy/move ctor, copy/move assignment operator, and destructor are all explicitly defaulted for this c...
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
HilbertSFCPartitioner & operator=(const HilbertSFCPartitioner &)=default
HilbertSFCPartitioner()
Constructor.
virtual PartitionerType type() const override
virtual ~HilbertSFCPartitioner()=default
This is the MeshBase class.
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.
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
The libMesh namespace provides an interface to certain functionality in the library.
PartitionerType
Defines an enum for mesh partitioner types.
@ HILBERT_SFC_PARTITIONER