SkelGIS  3.0
skelgis::CommunicationsInOut< T > Class Template Reference

template communicationInOut Class More...

#include <communications.hpp>

List of all members.

Public Member Functions

 CommunicationsInOut ()
 constructor
 ~CommunicationsInOut ()
 destructor
int ISendOut (T *bufOut, int count, int dest)
 A non blocking MPI send is initialized.
int ISendIn (T *bufIn, int count, int dest)
 A non blocking MPI send is initialized.
int IRecvOut (int count, int source)
 A non blocking MPI receive is initialized.
int IRecvIn (int count, int source)
 A non blocking MPI receive is initialized.
int Wait_sOut (int dest)
 A MPI wait call to wait for the send exchange with a precise processor.
int Wait_sIn (int dest)
 A MPI wait call to wait for the send exchange with a precise processor.
int Wait_rOut (T *toRecvOut, int src, int count)
 A MPI wait call to wait for the send exchange with a precise processor.
int Wait_rIn (T *toRecvIn, int src, int count)
 A MPI wait call to wait for the send exchange with a precise processor.

Public Attributes

MPI_Request * requests_s_out
MPI_Request * requests_s_in
MPI_Request * requests_r_out
MPI_Request * requests_r_in
MPI_Status * status_s_out
MPI_Status * status_s_in
MPI_Status * status_r_out
MPI_Status * status_r_in
char ** get_out
char ** get_in

Detailed Description

template<class T>
class skelgis::CommunicationsInOut< T >

template communicationInOut Class

This template class defines the MPI initializations, the MPI communications T is the type of data to exchange

Definition at line 184 of file communications.hpp.


Member Function Documentation

template<class T>
int skelgis::CommunicationsInOut< T >::IRecvIn ( int  count,
int  source 
) [inline]

A non blocking MPI receive is initialized.

Parameters:
countis the number of elements to receive from an in edge
sourceis the source processor
Returns:
the return value of the MPI_Irecv function

Definition at line 297 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::IRecvOut ( int  count,
int  source 
) [inline]

A non blocking MPI receive is initialized.

Parameters:
countis the number of elements to receive from an out edge
sourceis the source processor
Returns:
the return value of the MPI_Irecv function

Definition at line 283 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::ISendIn ( T *  bufIn,
int  count,
int  dest 
) [inline]

A non blocking MPI send is initialized.

Parameters:
bufis the sending buffer in another processor
countis the number of elements in the buffer
destis the destination processor
Returns:
the return value of the MPI_Isend function

Definition at line 270 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::ISendOut ( T *  bufOut,
int  count,
int  dest 
) [inline]

A non blocking MPI send is initialized.

Parameters:
bufis the sending buffer out of another processor
countis the number of elements in the buffer
destis the destination processor
Returns:
the return value of the MPI_Isend function

Definition at line 256 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::Wait_rIn ( T *  toRecvIn,
int  src,
int  count 
) [inline]

A MPI wait call to wait for the send exchange with a precise processor.

Parameters:
destis the destination processor the send is waiting
Returns:
the return value of the MPI_Wait function

Definition at line 352 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::Wait_rOut ( T *  toRecvOut,
int  src,
int  count 
) [inline]

A MPI wait call to wait for the send exchange with a precise processor.

Parameters:
destis the destination processor the send is waiting
Returns:
the return value of the MPI_Wait function

Definition at line 334 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::Wait_sIn ( int  dest) [inline]

A MPI wait call to wait for the send exchange with a precise processor.

Parameters:
destis the destination processor the send is waiting
Returns:
the return value of the MPI_Wait function

Definition at line 322 of file communications.hpp.

template<class T>
int skelgis::CommunicationsInOut< T >::Wait_sOut ( int  dest) [inline]

A MPI wait call to wait for the send exchange with a precise processor.

Parameters:
destis the destination processor the send is waiting
Returns:
the return value of the MPI_Wait function

Definition at line 310 of file communications.hpp.


Member Data Documentation

template<class T>
MPI_Request* skelgis::CommunicationsInOut< T >::requests_r_in

requests_s is the list of status for send communications (one for each processor)

Definition at line 200 of file communications.hpp.

template<class T>
MPI_Request* skelgis::CommunicationsInOut< T >::requests_s_in

requests_s is the list of requests for receive communications (one for each processor)

Definition at line 197 of file communications.hpp.

template<class T>
MPI_Request* skelgis::CommunicationsInOut< T >::requests_s_out

< requests_s is the list of requests for send communications (one for each processor)

Definition at line 195 of file communications.hpp.

template<class T>
MPI_Status* skelgis::CommunicationsInOut< T >::status_s_in

requests_s is the list of status for receive communications (one for each processor)

Definition at line 203 of file communications.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Defines