xugrid.Ugrid2d.partition#
- Ugrid2d.partition(n_part: int)[source]#
Partition this grid topology using METIS: KarypisLab/METIS
This method utilizes the pymetis Python bindings: inducer/pymetis
- Parameters:
n_part (integer) – The number of parts to partition the mesh.
- Return type:
partitions