IPPL (Independent Parallel Particle Layer)
IPPL
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
9namespace ippl {
10 namespace mpi {
15 public:
16 Environment() = delete;
17
18 Environment(int& argc, char**& argv, const MPI_Comm& comm = MPI_COMM_WORLD);
19
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
Definition Archive.h:20
static bool initialized()
static bool finalized()
void abort(int errorcode=-1) noexcept
Definition Environment.h:26