Skip to content

Class TempLat::MPISendReceive

ClassList > TempLat > MPISendReceive

A class which holds all methods that do plain Send and Receive in MPI. Just call the send and receive methods with any scalar or vector-like input, associated rank numbers and tags. Unused for now. More...

  • #include <mpisendreceive.h>

Public Functions

Type Name
MPISendReceive (MPICommReference comm)
void receive (std::vector< T > * theVec, int fromRank, int tag)
void receive (std::array< T, N > * theArr, int fromRank, int tag)
void receive (T * value, int fromRank, int tag, int size=1)
void send (std::vector< T > * theVec, int toRank, int tag)
void send (std::array< T, N > * theArr, int toRank, int tag)
void send (T * value, int toRank, int tag, int size=1)

Detailed Description

Unit test: ctest -R test-mpisendreceive

Public Functions Documentation

function MPISendReceive

inline TempLat::MPISendReceive::MPISendReceive (
    MPICommReference comm
) 

function receive [1/3]

template<typename T>
inline void TempLat::MPISendReceive::receive (
    std::vector< T > * theVec,
    int fromRank,
    int tag
) 

function receive [2/3]

template<typename T, size_t N>
inline void TempLat::MPISendReceive::receive (
    std::array< T, N > * theArr,
    int fromRank,
    int tag
) 

function receive [3/3]

template<typename T>
inline void TempLat::MPISendReceive::receive (
    T * value,
    int fromRank,
    int tag,
    int size=1
) 

function send [1/3]

template<typename T>
inline void TempLat::MPISendReceive::send (
    std::vector< T > * theVec,
    int toRank,
    int tag
) 

function send [2/3]

template<typename T, size_t N>
inline void TempLat::MPISendReceive::send (
    std::array< T, N > * theArr,
    int toRank,
    int tag
) 

function send [3/3]

template<typename T>
inline void TempLat::MPISendReceive::send (
    T * value,
    int toRank,
    int tag,
    int size=1
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/parallel/mpi/comm/exchange/mpisendreceive.h