ESyS-Particle
4.0.1
|
Buffer for MPI scatter/gather, leaf component. More...
#include <mpisgbuf.h>
Public Member Functions | |
CMPISGBufferLeaf (MPI_Comm, int, int) | |
virtual void | clear () |
virtual void | send () |
virtual void | receive () |
virtual void | append (int) |
virtual void | append (double) |
virtual void | append (const char *) |
virtual int | pop_int () |
virtual double | pop_double () |
virtual void | pop_doubles (double *, int) |
virtual std::string | pop_string () |
![]() | |
AMPISGBufferLeaf (MPI_Comm, int) | |
const MPI_Status & | status () |
![]() | |
AMPIBuffer (MPI_Comm comm) | |
virtual void | append (const Vec3 &) |
virtual Vec3 | pop_vector () |
Additional Inherited Members | |
![]() | |
int | m_root |
rank of the root process | |
int | m_int_increment |
int | m_dbl_increment |
the "packing size" of int/double |
Buffer for MPI scatter/gather, leaf component.
CMPISGBufferLeaf::CMPISGBufferLeaf | ( | MPI_Comm | comm, |
int | root, | ||
int | buffersize | ||
) |
Constuctor for CMPISGBufferLeaf
comm | the MPI communicator |
root | rank of the root process |
buffersize | size of the communication buffer |
|
virtual |
Append an integer to the buffer.
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm.
Referenced by TSubLattice< T >::checkNeighbors().
|
virtual |
Append a double to the buffer.
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm.
|
virtual |
Append a string to the buffer. The string appended is a normal (zero-terminated) C-string, but is internally handeled by packing the length frist and then the string.
Implements AMPIBuffer.
References AMPIBuffer::m_comm.
|
virtual |
Pops a double from the buffer.
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm.
|
virtual |
Pops an integer from the buffer, i.e. it pops the last sizeof(MPI_INT) bytes of the buffer, interpreting them as an int.
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm.
|
virtual |
Pops a string from the buffer. The first for bytes are interpreted as int, giving the length of the string (without terminating '\0'), the rest as the characters.
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm.
|
virtual |
Receive data from root process, using MPI_Scatter
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm, and AMPISGBufferLeaf::m_root.
|
virtual |
Send data to the root process, using MPI_Gather
Implements AMPISGBufferLeaf.
References AMPIBuffer::m_comm, and AMPISGBufferLeaf::m_root.
Referenced by TSubLattice< T >::checkNeighbors().