27 virtual std::unique_ptr<Partitioner>
clone()
const override;
38 const std::vector<SubdomainName> &
_blocks;
Partition a mesh by weighting blocks.
void initialize(MeshBase &mesh) override
Fills _blocks_to_weights before performing the partition.
virtual std::unique_ptr< Partitioner > clone() const override
const std::vector< dof_id_type > & _weights
static InputParameters validParams()
const std::vector< SubdomainName > & _blocks
Vector the block names supplied by the user via the input file.
virtual dof_id_type computeElementWeight(Elem &elm) override
std::unordered_map< SubdomainID, dof_id_type > _blocks_to_weights
A map from subdomain to weight.
Partitions a mesh using external petsc partitioners such as parmetis, ptscotch, chaco,...