ESyS-Particle  4.0.1
MpiInfo.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 
14 #ifndef MPIINFO_H
15 #define MPIINFO_H
16 
17 #include <mpi.h>
18 
23 class MpiInfo
24 {
25 public:
29  MpiInfo(MPI_Comm comm = MPI_COMM_WORLD);
30 
31  virtual ~MpiInfo();
32 
36  int rank() const;
37 
41  int size() const;
42 
43 private:
44  MPI_Comm m_comm;
45 };
46 
47 #endif