37#ifndef PFC_MPI_ENVIRONMENT_HPP
38#define PFC_MPI_ENVIRONMENT_HPP
49 inline std::string processor_name();
50 inline bool initialized();
51 inline bool finalized();
58inline std::string environment::processor_name() {
59 char name[MPI_MAX_PROCESSOR_NAME];
61 MPI_Get_processor_name(name, &resultlen);
62 return std::string(name, resultlen);
65inline bool environment::initialized() {
67 MPI_Initialized(&flag);
71inline bool environment::finalized() {
Definition environment.hpp:45
Represents the global simulation domain (the "world").
Definition world.hpp:91