sailfish.subdivide.concat_on_host

sailfish.subdivide.concat_on_host(arrays: list, num_guard=None, rank=None)[source]

Concatenate a list of arrays, which may be allocated on different devices.

The array returned is allocated on the host. The concatenation is performed on the first axis.

Arrays represent fields of data on either 1d or 2d grids (rank of either 1 or 2). If rank is None, it is assumed that only the final axis contains fields, so rank is inferred to be len(array.shape) - 1. If several trailing axes represent more fields, then rank must be given explicitly.