PaCO++  0.05
paco_mpi.h
Go to the documentation of this file.
00001 #ifndef __paco_mpi_h_
00002 #define __paco_mpi_h_
00003 
00004 #include <mpi.h>
00005 #include "paco_com.h"
00006 
00007 class paco_mpi : virtual public paco_com
00008 {
00009  public:
00010   paco_mpi(void* group);
00011   virtual ~paco_mpi();
00012 
00013   int paco_rank(int  * rank);
00014   int paco_barrier();
00015 
00016   int paco_bcast(void* buf, int count, int root);
00017  protected:
00018   MPI_Comm my_group_id;
00019 };
00020 
00021 class paco_mpi_fabrique : virtual public paco_fabrique_com 
00022 {
00023  public:
00024   paco_com* paco_create(void* group) {
00025     return new paco_mpi(group);
00026   }
00027 };
00028 
00029 #endif