42 #include "Tpetra_Details_mpiIsInitialized.hpp"
43 #ifdef HAVE_TPETRACORE_MPI
46 #endif // HAVE_TPETRACORE_MPI
53 #ifdef HAVE_TPETRACORE_MPI
55 const int errCode = MPI_Initialized (&isInitialized);
58 return errCode == MPI_SUCCESS && (isInitialized != 0);
61 #endif // HAVE_TPETRACORE_MPI
66 #ifdef HAVE_TPETRACORE_MPI
68 const int errCode = MPI_Finalized (&isFinalized);
71 return errCode == MPI_SUCCESS && (isFinalized != 0);
74 #endif // HAVE_TPETRACORE_MPI
bool isInitialized()
Whether Tpetra is in an initialized state.
bool mpiIsFinalized()
Has MPI_Finalize been called (on this process)?
bool mpiIsInitialized()
Has MPI_Init been called (on this process)?