ESyS-Particle  2.3
mpibarrier.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
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
A convenience class encapsulating an MPI barrier. Includes timing of the wait and a debug message ( v...
Definition: mpibarrier.h:30
double m_time
Definition: mpibarrier.h:35
void wait(const char *)
Definition: mpibarrier.cpp:32
CMPIBarrier(MPI_Comm comm=MPI_COMM_WORLD)
Definition: mpibarrier.cpp:20
int m_id
the rank of the process
Definition: mpibarrier.h:34
MPI_Comm m_comm
the MPI Communicator used
Definition: mpibarrier.h:33