Geant4
10.03.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4MPIstatus.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
27
28
#ifndef G4MPI_STATUS_H
29
#define G4MPI_STATUS_H
30
31
#include "
globals.hh
"
32
#include "
G4ApplicationState.hh
"
33
#include "
G4Timer.hh
"
34
35
class
G4Timer
;
36
37
class
G4MPIstatus
{
38
public
:
39
G4MPIstatus
();
40
~G4MPIstatus
();
41
42
// set/get functions
43
void
SetStatus
(
G4int
arank,
G4int
runid,
G4int
noe,
G4int
evtid,
44
G4ApplicationState
state);
45
46
G4int
GetRank
()
const
;
47
G4int
GetRunID
()
const
;
48
G4int
GetNEventToBeProcessed
()
const
;
49
G4int
GetEventID
()
const
;
50
G4double
GetCPUTime
()
const
;
51
G4ApplicationState
GetG4State
()
const
;
52
53
// for pickling
54
G4int
SizeOf
()
const
;
55
void
Pack
(
G4int
*
data
)
const
;
56
void
UnPack
(
G4int
* data);
57
58
// for timer
59
void
StartTimer
();
60
void
StopTimer
();
61
62
void
Print
()
const
;
63
64
enum
{
kNSIZE
= 10 };
65
66
private
:
67
G4int
rank_;
68
G4int
run_id_;
69
G4int
nevent_to_be_processed_;
70
G4int
event_id_;
71
G4double
cputime_;
72
G4ApplicationState
g4state_;
73
G4Timer
* timer_;
74
75
G4String
GetStateString(
G4ApplicationState
astate)
const
;
76
};
77
78
// ====================================================================
79
inline
G4int
G4MPIstatus::SizeOf
()
const
80
{
81
return
kNSIZE
;
82
}
83
84
inline
G4int
G4MPIstatus::GetRank
()
const
85
{
86
return
rank_;
87
}
88
89
inline
G4int
G4MPIstatus::GetRunID
()
const
90
{
91
return
run_id_;
92
}
93
94
inline
G4int
G4MPIstatus::GetNEventToBeProcessed
()
const
95
{
96
return
nevent_to_be_processed_;
97
}
98
99
inline
G4int
G4MPIstatus::GetEventID
()
const
100
{
101
return
event_id_;
102
}
103
104
inline
G4double
G4MPIstatus::GetCPUTime
()
const
105
{
106
return
cputime_;
107
}
108
109
inline
G4ApplicationState
G4MPIstatus::GetG4State
()
const
110
{
111
return
g4state_;
112
}
113
114
#endif
G4MPIstatus::GetCPUTime
G4double GetCPUTime() const
Definition:
G4MPIstatus.hh:104
G4MPIstatus::StopTimer
void StopTimer()
Definition:
G4MPIstatus.cc:52
G4MPIstatus::SizeOf
G4int SizeOf() const
Definition:
G4MPIstatus.hh:79
G4Timer.hh
G4ApplicationState.hh
G4MPIstatus::GetRank
G4int GetRank() const
Definition:
G4MPIstatus.hh:84
G4MPIstatus::SetStatus
void SetStatus(G4int arank, G4int runid, G4int noe, G4int evtid, G4ApplicationState state)
Definition:
G4MPIstatus.cc:58
G4MPIstatus::UnPack
void UnPack(G4int *data)
Definition:
G4MPIstatus.cc:84
G4MPIstatus
Definition:
G4MPIstatus.hh:37
G4MPIstatus::G4MPIstatus
G4MPIstatus()
Definition:
G4MPIstatus.cc:32
G4int
int G4int
Definition:
G4Types.hh:78
G4MPIstatus::StartTimer
void StartTimer()
Definition:
G4MPIstatus.cc:46
data
const XML_Char const XML_Char * data
Definition:
expat.h:268
G4MPIstatus::~G4MPIstatus
~G4MPIstatus()
Definition:
G4MPIstatus.cc:40
G4MPIstatus::GetG4State
G4ApplicationState GetG4State() const
Definition:
G4MPIstatus.hh:109
G4Timer
Definition:
G4Timer.hh:110
globals.hh
G4MPIstatus::GetEventID
G4int GetEventID() const
Definition:
G4MPIstatus.hh:99
G4MPIstatus::GetRunID
G4int GetRunID() const
Definition:
G4MPIstatus.hh:89
G4MPIstatus::Print
void Print() const
Definition:
G4MPIstatus.cc:97
G4double
double G4double
Definition:
G4Types.hh:76
G4MPIstatus::Pack
void Pack(G4int *data) const
Definition:
G4MPIstatus.cc:71
G4MPIstatus::kNSIZE
Definition:
G4MPIstatus.hh:64
G4ApplicationState
G4ApplicationState
Definition:
G4ApplicationState.hh:84
G4MPIstatus::GetNEventToBeProcessed
G4int GetNEventToBeProcessed() const
Definition:
G4MPIstatus.hh:94
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p03
examples
extended
parallel
MPI
source
include
G4MPIstatus.hh
Generated on Tue Nov 28 2017 21:43:52 for Geant4 by
1.8.5