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

template communication Class More...

#include <communications.hpp>

List of all members.

Public Member Functions

 Communications ()
 constructor
 ~Communications ()
 destructor
int ISend (T *buf, int count, int dest)
 A non blocking MPI send is initialized.
int IRecv (int count, int source)
 A non blocking MPI receive is initialized.
int Wait_s (int dest)
 A MPI wait call to wait for the send exchange with a precise processor.
int Wait_r (T *toRecv, int src, int count)
 A MPI wait call to wait for the send exchange with a precise processor.

Static Public Member Functions

static void Exchanges (T *toSend, T *toGet, unsigned int size, int rank)
 used by get borders to make exchanges

Public Attributes

MPI_Request * requests_s
MPI_Request * requests_r
MPI_Status * status_s
MPI_Status * status_r
char ** get

Detailed Description

template<class T>
class skelgis::Communications< T >

template communication Class

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

Definition at line 19 of file communications.hpp.


Member Function Documentation

template<class T >
static void skelgis::Communications< T >::Exchanges ( T *  toSend,
T *  toGet,
unsigned int  size,
int  rank 
) [inline, static]

used by get borders to make exchanges

Parameters:
toGetis the data to get from mpi process and omp thread
toSendis the data to send to mpi process and omp thread
sizeis the size of data to send and recv
rankis the mpi rank to exchange with

Definition at line 32 of file communications.hpp.

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

A non blocking MPI receive is initialized.

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

Definition at line 136 of file communications.hpp.

template<class T >
int skelgis::Communications< T >::ISend ( T *  buf,
int  count,
int  dest 
) [inline]

A non blocking MPI send is initialized.

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

Definition at line 123 of file communications.hpp.

template<class T >
int skelgis::Communications< T >::Wait_r ( T *  toRecv,
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 161 of file communications.hpp.

template<class T >
int skelgis::Communications< T >::Wait_s ( 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 149 of file communications.hpp.


Member Data Documentation

template<class T >
MPI_Request* skelgis::Communications< T >::requests_r

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

Definition at line 80 of file communications.hpp.

template<class T >
MPI_Request* skelgis::Communications< T >::requests_s

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

Definition at line 78 of file communications.hpp.

template<class T >
MPI_Status* skelgis::Communications< T >::status_s

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

Definition at line 82 of file communications.hpp.


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