Go to the documentation of this file.
20 #ifndef LIBMESH_LINEAR_PARTITIONER_H
21 #define LIBMESH_LINEAR_PARTITIONER_H
24 #include "libmesh/partitioner.h"
25 #include "libmesh/auto_ptr.h"
58 virtual std::unique_ptr<Partitioner>
clone ()
const override
60 return libmesh_make_unique<LinearPartitioner>(*
this);
69 const unsigned int n)
override;
76 const unsigned int n)
override;
81 #endif // LIBMESH_LINEAR_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.
LinearPartitioner()=default
Ctors, assignment operators, and destructor are all explicitly defaulted for this class.
LinearPartitioner & operator=(const LinearPartitioner &)=default
The libMesh namespace provides an interface to certain functionality in the library.
IterBase * end
Also have a polymorphic pointer to the end object, this prevents iterating past the end.
The Partitioner class provides a uniform interface for partitioning algorithms.
This is the MeshBase class.
virtual void _do_partition(MeshBase &mesh, const unsigned int n) override
Partition the MeshBase into n subdomains.
virtual ~LinearPartitioner()=default
virtual std::unique_ptr< Partitioner > clone() const override
The LinearPartitioner simply takes the element list and splits it into equal-sized chunks assigned to...