mpi_array.update.MpiHaloSingleExtentUpdate¶
-
class
mpi_array.update.MpiHaloSingleExtentUpdate(dst_extent, src_extent, update_extent)[source]¶ Bases:
mpi_array.update.ExtentUpdateSource and destination indexing info for updating the whole of a halo portion. Extends
ExtentUpdatewith API to creatempi4py.MPI.Datatypeinstances (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_typeandsrc_data_typeattributes.Attributes
dst_data_typeA mpi4py.MPI.Datatypeobject created usingmpi4py.MPI.Datatype.Create_subarray()which defines the sub-array of halo elements which are to receive update values.dst_extentThe locale LocaleExtentwhich is to receive sub-array update.src_data_typeA mpi4py.MPI.Datatypeobject created usingmpi4py.MPI.Datatype.Create_subarray()which defines the sub-array of halo elements from which receive update values.src_extentThe locale CartLocaleExtentfrom which the sub-array update is read.update_extentThe IndexingExtentindicating the halo sub-array which is to be updated.