xugrid.Ugrid2d.merge_partitions#

static Ugrid2d.merge_partitions(grids: Sequence[Ugrid2d]) tuple[Ugrid2d, dict[str, array]][source]#

Merge grid partitions into a single whole.

Duplicate faces are included only once, and removed from subsequent partitions before merging.

Parameters:

grids (sequence of Ugrid2d)

Returns:

merged

Return type:

Ugrid2d