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