ESyS-Particle  4.0.1
mpibarrier.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 __MPIBARRIER_H
14 #define __MPIBARRIER_H
15 
16 // -- system includes --
17 #include <mpi.h>
18 
19 // -- project includes --
20 
31 {
32 private:
33  MPI_Comm m_comm;
34  int m_id;
35  double m_time;
36 
37 
38 public:
39  CMPIBarrier(MPI_Comm comm=MPI_COMM_WORLD);
40 
41  void wait(const char*);
42 };
43 
44 #endif // __MPIBARRIER_H