RAII Object to initialize and finalize MPI.
Typical use case is to create an mpi::Environment at the beginning of your main() function:
This takes care of calling MPI_Init and MPI_Finalize at the correct places
You probably want to use walberla::Environment instead, which not only handles MPI initialization but also initializes other waLBerla singletons!
#include <Environment.h>
Public Member Functions | |
Environment (int &argc, char **&argv, bool abortOnException=true) | |
~Environment () | |
|
inline |
|
inline |