OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
optimizer
Util
Trace
MyPid.h
Go to the documentation of this file.
1
#include "
Util/Trace/TraceComponent.h
"
2
3
#include "mpi.h"
4
5
class
MyPid
:
public
TraceComponent
{
6
7
public
:
8
9
10
MyPid
(std::string
name
, MPI_Comm comm)
11
:
TraceComponent
(name)
12
{
13
mypid_
= 0;
14
MPI_Comm_rank(comm, &
mypid_
);
15
}
16
17
void
execute
(std::ostringstream &dump) {
18
dump <<
mypid_
;
19
}
20
21
private
:
22
23
int
mypid_
;
24
25
};
TraceComponent
Definition:
TraceComponent.h:7
TraceComponent.h
MyPid
Definition:
MyPid.h:5
MyPid::mypid_
int mypid_
Definition:
MyPid.h:23
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:3
MyPid::MyPid
MyPid(std::string name, MPI_Comm comm)
Definition:
MyPid.h:10
MyPid::execute
void execute(std::ostringstream &dump)
Definition:
MyPid.h:17
Generated on Sat Jan 4 2020 14:47:42 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5