DOLFINx 0.12.0.0
DOLFINx C++
Loading...
Searching...
No Matches
Partitioner Struct Reference

An ::AnyPartitionFunction together with the node weights it should be called with, if any. More...

#include <partition.h>

Public Attributes

AnyPartitionFunction fn = partition_fn(partition_graph)
std::optional< std::span< const std::int32_t > > node_weights = std::nullopt

Detailed Description

An ::AnyPartitionFunction together with the node weights it should be called with, if any.

Bundles the two arguments that are otherwise threaded through mesh::create_mesh and mesh::impl::partition_cells separately, since a weight only makes sense alongside the partitioner it is meant for.

Member Data Documentation

◆ fn

Partitioning function. Defaults to ::partition_graph, the default graph partitioner.

◆ node_weights

std::optional<std::span<const std::int32_t> > node_weights = std::nullopt

Node weights, one entry per node the partitioner is called with. If std::nullopt, nodes are treated as having equal weight.


The documentation for this struct was generated from the following file: