ESyS-Particle  4.0.1
mpicmdbuf.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __MPICMDBUF_H
14 #define __MPICMDBUF_H
15 
16 #include <mpi.h>
17 
30 {
31 private:
32  MPI_Comm m_comm;
33  MPI_Status m_status;
34  int m_root;
35  bool m_isroot;
36 
37 public:
38  CMPILCmdBuffer(MPI_Comm,int);
39  virtual ~CMPILCmdBuffer(){};
40 
41  void broadcast(int);
42  int receive();
43 
44 };
45 #endif //__MPICMDBUF_H