20#ifndef LIBMESH_MORTON_SFC_PARTITIONER_H
21#define LIBMESH_MORTON_SFC_PARTITIONER_H
24#include "libmesh/sfc_partitioner.h"
26#include "libmesh/enum_partitioner_type.h"
71 virtual std::unique_ptr<Partitioner>
clone ()
const override
73 return std::make_unique<MortonSFCPartitioner>(*
this);
82 const unsigned int n)
override
This is the MeshBase class.
The MortonSFCPartitioner uses a Morton space filling curve to partition the elements.
MortonSFCPartitioner(MortonSFCPartitioner &&)=default
virtual PartitionerType type() const override
MortonSFCPartitioner(const MortonSFCPartitioner &)=default
Copy/move ctor, copy/move assignment operator, and destructor are all explicitly defaulted for this c...
virtual ~MortonSFCPartitioner()=default
MortonSFCPartitioner()
Constructor.
virtual std::unique_ptr< Partitioner > clone() const override
MortonSFCPartitioner & operator=(const MortonSFCPartitioner &)=default
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
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.