ESyS-Particle
4.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
Parallel
RankAndComm.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 __RANKANDCOMM_H
14
#define __RANKANDCOMM_H
15
16
//--- MPI includes ---
17
#include <mpi.h>
18
19
class
MpiRankAndComm
20
{
21
public
:
22
MpiRankAndComm
(
int
globalRank, MPI_Comm globalComm)
23
: m_globalRank(globalRank),
24
m_globalComm(globalComm)
25
{
26
}
27
28
int
getRank()
const
29
{
30
return
m_globalRank;
31
}
32
33
MPI_Comm getComm()
const
34
{
35
return
m_globalComm;
36
}
37
38
private
:
39
int
m_globalRank;
40
MPI_Comm m_globalComm;
41
};
42
43
#endif // __RANKANDCOMM_H
Generated on Sun Apr 13 2014 05:18:51 for ESyS-Particle by
1.8.1.2