mpi_array.distribution.HaloSubExtent.calc_intersection_split

HaloSubExtent.calc_intersection_split(other)

Returns (leftovers, intersection) pair, where intersection is the IndexingExtent object (possibly None) indicating the intersection of this (self) extent with the other extent and leftovers is a list of IndexingExtent objects indicating regions of self which do not intersect with the other extent.

Parameters:other (IndexingExtent) – Perform intersection calculation using this extent.
Return type:tuple
Returns:(leftovers, intersection) pair.