walberla::mpi::Environment Class Reference

Detailed Description

RAII Object to initialize and finalize MPI.

Typical use case is to create an mpi::Environment at the beginning of your main() function:

int main( int argc, char ** argv )
mpi::Environment mpiEnv( argc, argv );

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 ()

Constructor & Destructor Documentation

◆ Environment()

walberla::mpi::Environment::Environment ( int &  argc,
char **&  argv,
bool  abortOnException = true 

◆ ~Environment()

walberla::mpi::Environment::~Environment ( )

The documentation for this class was generated from the following file:
int main(int argc, char **argv)
Main Function ///.
Definition: 01_BlocksAndFields.cpp:36