xugrid.Ugrid2d.label_partitions#

Ugrid2d.label_partitions(n_part: int) UgridDataArray[source]#

Generate partition labesl for 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.

Returns:

partition_labels

Return type:

UgridDataArray of integers