10 #ifndef ANASAZI_GLOBAL_COMM_HPP
11 #define ANASAZI_GLOBAL_COMM_HPP
22 static std::mutex mpi_mutex;
23 static MPI_Comm Global_Anasazi_Comm = MPI_COMM_WORLD;
25 inline void initialize_global_comm(MPI_Comm comm) {
26 std::lock_guard<std::mutex> guard(mpi_mutex);
27 Global_Anasazi_Comm = comm;
30 inline MPI_Comm get_global_comm() {
31 std::lock_guard<std::mutex> guard(mpi_mutex);
32 return Global_Anasazi_Comm;
38 #endif // ANASAZI_GLOBAL_COMM_HPP
Anasazi header file which uses auto-configuration information to include necessary C++ headers...