oss_src/rpc/mpi_tools.hpp
inline void init(int& argc, char**& argv) {
#ifdef HAS_MPI
      const int required(MPI_THREAD_SINGLE);
      int provided(-1);
      int error = MPI_Init_thread(&argc, &argv, required, &provided);
      assert(provided >= required);
      assert(error == MPI_SUCCESS);
#else
      logstream(LOG_EMPH) << "MPI Support was not compiled." << std::endl;
#endif
    }
/**
     * The init function is used to initialize MPI and must be called
     * to clean the command line arguments.
     */
The init function is used to initialize MPI and must be called
to clean the command line arguments.
The init function is used to initialize MPI and must be called to clean the command line arguments .
inline void init(int& argc, char**& argv) {
#ifdef HAS_MPI
      const int required(MPI_THREAD_SINGLE);
      int provided(-1);
      int error = MPI_Init_thread(&argc, &argv, required, &provided);
      assert(provided >= required);
      assert(error == MPI_SUCCESS);
#else
      logstream(LOG_EMPH) << "MPI Support was not compiled." << std::endl;
#endif
    }
inline void init ( int & argc , char * * & argv ) { #ifdef HAS_MPI const int required ( MPI_THREAD_SINGLE ) ; int provided ( -1 ) ; int error = MPI_Init_thread ( & argc , & argv , required , & provided ) ; assert ( provided >= required ) ; assert ( error == MPI_SUCCESS ) ; #else logstream ( LOG_EMPH ) << " " << std :: endl ; #endif }
The init function is used to initialize MPI and must be called
 to clean the command line arguments.
The init function is used to initialize MPI and must be called to clean the command line arguments .