triqs.utility.mpi.check_for_mpi

triqs.utility.mpi.check_for_mpi()[source]

Simple function checking if triqs has been called with mpirun or without, by checking for typical MPI environment variables. To enforce the MPI init TRIQS_FORCE_MPI_INIT can be set manually as env variable.

Returns:

is_mpi: bool

True if triqs called with mpirun