TRIQS/mpi 2.0.0
C++ interface to MPI
Loading...
Searching...
No Matches
environment.hpp
#include "./utils.hpp"
#include <mpi.h>
#include <cstdlib>

Detailed Description

Provides an MPI environment for initializing and finalizing an MPI program.

Definition in file environment.hpp.

Go to the source code of this file.

Classes

struct  mpi::environment
 RAII class to initialize and finalize MPI. More...

Functions

bool mpi::is_finalized () noexcept
 Check if MPI has been finalized by calling MPI_Finalized.
bool mpi::is_initialized () noexcept
 Check if MPI has been initialized by calling MPI_Initialized.

Variables

static const bool mpi::has_env
 Boolean variable that checks if there is an active MPI runtime environment.