Skip to content

Class TempLat::GhostSubarray

template <size_t NDim>

ClassList > TempLat > GhostSubarray

A class which holds an MPI_Datatype which is a subarray of the lattice, created by MPI_Type_create_subarray. The subarray is the ghost padding of the lattice, in one single dimension. More...

  • #include <ghostsubarray.h>

Public Functions

Type Name
GhostSubarray (LayoutStruct< NDim > layout, device::Idx dimension, device::Idx depth, MPI_Datatype atomType)
Constructor.
operator MPI_Datatype () const
~GhostSubarray ()

Detailed Description

Unit test: ctest -R test-ghostsubarray

Public Functions Documentation

function GhostSubarray

Constructor.

inline TempLat::GhostSubarray::GhostSubarray (
    LayoutStruct < NDim > layout,
    device::Idx dimension,
    device::Idx depth,
    MPI_Datatype atomType
) 

Parameters:

  • layout The layout of the memory.
  • dimension The dimension in which to create the array.
  • depth The number of ghost steps at either side of the array.
  • atomType the MPI_Datatype corresponding to the elements which are laid out in the layout.

function operator MPI_Datatype

inline TempLat::GhostSubarray::operator MPI_Datatype () const

function ~GhostSubarray

inline TempLat::GhostSubarray::~GhostSubarray () 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/ghostcells/ghostsubarray.h