mpi_array.update.MpiHaloSingleExtentUpdate

class mpi_array.update.MpiHaloSingleExtentUpdate(dst_extent, src_extent, update_extent)[source]

Bases: mpi_array.update.ExtentUpdate

Source and destination indexing info for updating the whole of a halo portion. Extends ExtentUpdate with API to create mpi4py.MPI.Datatype instances (using mpi4py.MPI.Datatype.Create_subarray()) for convenient transfer of sub-array data.

Methods

__init__(dst_extent, src_extent, update_extent)
initialise_data_types(dtype, order) Assigns new instances of mpi4py.MPI.Datatype for the dst_data_type and src_data_type attributes.

Attributes

dst_data_type A mpi4py.MPI.Datatype object created using mpi4py.MPI.Datatype.Create_subarray() which defines the sub-array of halo elements which are to receive update values.
dst_extent The locale LocaleExtent which is to receive sub-array update.
src_data_type A mpi4py.MPI.Datatype object created using mpi4py.MPI.Datatype.Create_subarray() which defines the sub-array of halo elements from which receive update values.
src_extent The locale CartLocaleExtent from which the sub-array update is read.
update_extent The IndexingExtent indicating the halo sub-array which is to be updated.