IPPL API Reference
Independent Parallel Particle Layer C++ API
Loading...
Searching...
No Matches
Environment.h
Go to the documentation of this file.
1
//
2
// Class Environment
3
//
4
#ifndef IPPL_MPI_ENVIRONMENT_H
5
#define IPPL_MPI_ENVIRONMENT_H
6
7
#include <mpi.h>
8
9
namespace
ippl
{
10
namespace
mpi {
14
class
Environment
{
15
public
:
16
Environment
() =
delete
;
17
18
Environment
(
int
& argc,
char
**& argv,
const
MPI_Comm& comm = MPI_COMM_WORLD);
19
20
~Environment
();
21
22
static
bool
initialized();
23
24
static
bool
finalized();
25
26
void
abort(
int
errorcode = -1)
noexcept
{ MPI_Abort(comm_m, errorcode); }
27
28
private
:
29
MPI_Comm comm_m;
30
};
31
}
// namespace mpi
32
}
// namespace ippl
33
34
#endif
ippl::mpi::Environment
Definition
Environment.h:14
ippl
Definition
Archive.h:20
ippl-src
src
Communicate
Environment.h
Generated by
1.9.8