ESyS-Particle  2.3.4
mpibarrier.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 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.apache.org/licenses/LICENSE-2.0 //
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
CMPIBarrier::m_time
double m_time
Definition: mpibarrier.h:35
CMPIBarrier::CMPIBarrier
CMPIBarrier(MPI_Comm comm=MPI_COMM_WORLD)
Definition: mpibarrier.cpp:20
mpibarrier.h
console.h
CMPIBarrier
A convenience class encapsulating an MPI barrier. Includes timing of the wait and a debug message ( v...
Definition: mpibarrier.h:31
Console::XDebug
Console & XDebug()
set verbose level of next message to "xdg"
CMPIBarrier::m_id
int m_id
the rank of the process
Definition: mpibarrier.h:34
console
Console console
Definition: console.cpp:25
CMPIBarrier::wait
void wait(const char *)
Definition: mpibarrier.cpp:32
CMPIBarrier::m_comm
MPI_Comm m_comm
the MPI Communicator used
Definition: mpibarrier.h:33