Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_communicator Class Reference

DO NOT INSTANTIATE use object mdp instead. More...

#include <mdp_communicator.h>

Inheritance diagram for mdp_communicator:

mdp_log List of all members.

Public Member Functions

 mdp_communicator ()
 time spent in communications
template<class T>
void put (T &obj, int destination)
template<class T>
void put (T &obj, int destination, mdp_request &r)
template<class T>
void get (T &obj, int source)
template<class T>
void put (T *objptr, long length, int destination)
template<class T>
void put (T *objptr, long length, int destination, mdp_request &r)
template<class T>
void get (T *objptr, long length, int source)
void add (float &obj1, float &obj2)
void add (float *obj1, float *obj2, long length)
void add (double &obj1, double &obj2)
void add (double *obj1, double *obj2, long length)
void add (int &obj1)
void add (long &obj1)
void add (float &obj1)
void add (double &obj1)
void add (int *obj1, long length)
void add (long *obj1, long length)
void add (float *obj1, long length)
void add (double *obj1, long length)
void add (mdp_complex &obj1)
void add (mdp_complex *obj1, long length)
void add (mdp_matrix &a)
void add (mdp_matrix *a, long length)
template<class T>
void broadcast (T &obj, int p)
template<class T>
void broadcast (T *obj, long length, int p)
void wait (mdp_request &r)
void wait (mdp_request *r, int length)
const int me ()
const int nproc ()
void barrier ()
int tag (int i, int j)
void reset_time ()
double time ()
 returns the time in seconds since call to mdp_communicator::open_wormholes
void open_wormholes (int argc, char **argv)
void print_stats ()
 prints statistics about parallel processes
void close_wormholes ()
 closes parallel communications
void abort ()
 forces the process to exit(-1)

Public Attributes

double comm_time

Detailed Description

DO NOT INSTANTIATE use object mdp instead.

Example:

    int main(int argc, char**argv) {
       mdp.open_wormholes(argc,argv);
       // your code here
       mdp << 3.14 << endl;  // only process 0 prints
       mdp.close_wormholes();
       return 0;
    }
    


Member Function Documentation

void mdp_communicator::open_wormholes int  argc,
char **  argv
[inline]
 

starts communications parses command line argument for MPI or PSIM parameters


The documentation for this class was generated from the following file:
Generated on Sun Feb 27 15:12:25 2005 by  doxygen 1.4.1