20#ifndef LIBMESH_LINEAR_PARTITIONER_H
21#define LIBMESH_LINEAR_PARTITIONER_H
24#include "libmesh/partitioner.h"
62 virtual std::unique_ptr<Partitioner>
clone ()
const override
64 return std::make_unique<LinearPartitioner>(*
this);
73 const unsigned int n)
override;
80 const unsigned int n)
override;
The LinearPartitioner simply takes the element list and splits it into equal-sized chunks assigned to...
virtual ~LinearPartitioner()=default
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).
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
virtual PartitionerType type() const override
LinearPartitioner(LinearPartitioner &&)=default
virtual std::unique_ptr< Partitioner > clone() const override
LinearPartitioner()=default
Ctors, assignment operators, and destructor are all explicitly defaulted for this class.
LinearPartitioner(const LinearPartitioner &)=default
LinearPartitioner & operator=(const LinearPartitioner &)=default
This is the MeshBase class.
The Partitioner class provides a uniform interface for partitioning algorithms.
The libMesh namespace provides an interface to certain functionality in the library.
PartitionerType
Defines an enum for mesh partitioner types.
The definition of the element_iterator struct.