10 #include "Tpetra_Details_mpiIsInitialized.hpp"
11 #ifdef HAVE_TPETRACORE_MPI
14 #endif // HAVE_TPETRACORE_MPI
21 #ifdef HAVE_TPETRACORE_MPI
23 const int errCode = MPI_Initialized (&isInitialized);
26 return errCode == MPI_SUCCESS && (isInitialized != 0);
29 #endif // HAVE_TPETRACORE_MPI
34 #ifdef HAVE_TPETRACORE_MPI
36 const int errCode = MPI_Finalized (&isFinalized);
39 return errCode == MPI_SUCCESS && (isFinalized != 0);
42 #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)?