ESyS-Particle  4.0.1
mpibarrier.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 #ifndef __MPIBARRIER_H
00014 #define __MPIBARRIER_H
00015 
00016 // -- system includes --
00017 #include <mpi.h>
00018 
00019 // -- project includes --
00020 
00030 class CMPIBarrier
00031 {
00032 private:
00033   MPI_Comm m_comm; 
00034   int m_id;         
00035   double m_time; 
00036 
00037 
00038 public:
00039   CMPIBarrier(MPI_Comm comm=MPI_COMM_WORLD);
00040 
00041   void wait(const char*);
00042 };
00043 
00044 #endif // __MPIBARRIER_H