pyopensn.mesh.LinearGraphPartitioner
- class pyopensn.mesh.LinearGraphPartitioner
Basic linear partitioning.
This type of partitioner works basically only for testing.
Orthogonal meshes can produce decent partitioning but for unstructured grids it can be pretty bad. It partitions cells based on their linear index
global_id
instead of actually working with the graph.Wrapper of
opensn::LinearGraphPartitioner
.- __init__(self: pyopensn.mesh.LinearGraphPartitioner, **kwargs) None
Construct a linear graph partitioner.
- Parameters:
all_to_rank (int, default=-1) – Rank to which all cells are restricted if non-zero. Otherwise, the partitioner is equivalent to a single-rank partitioner.