Alpine3D  Alpine3D-3.2.0
MPIControl.h File Reference
#include <mpi.h>
#include <meteoio/MeteoIO.h>
#include <cstdio>

Go to the source code of this file.

Classes

class  MPIControl
 A singleton class that deals with all aspects of parallelization within Alpine3D (MPI, OpenMP, PETSc) Any class that wishes to utilize the MPI/OpenMP/PETSc capabilities should include this header and make sure that the respective cmake compilation options (called MPI, OPENMP, PETSC) are activated. The methods are designed in a transparent way also returning meaningful values if the compilation options were not activated, e. g. bool master() will return true if MPI was not activated and if it was activated then it will return false on all processes that are not master and true solely for the master process. More...