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 creatempi4py.MPI.Datatype
instances (usingmpi4py.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
andsrc_data_type
attributes.Attributes
dst_data_type
A mpi4py.MPI.Datatype
object created usingmpi4py.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 usingmpi4py.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.