Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tpetra_Details_extractMpiCommFromTeuchos.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Tpetra: Templated Linear Algebra Services Package
4 //
5 // Copyright 2008 NTESS and the Tpetra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
11 #define TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
12 
18 
19 #include "TpetraCore_config.h"
20 #ifdef HAVE_TPETRACORE_MPI
21 # include <mpi.h> // MPI_Comm
22 #endif // HAVE_TPETRACORE_MPI
23 
24 #ifndef DOXYGEN_SHOULD_SKIP_THIS
25 namespace Teuchos {
26  // forward declaration of Comm
27  template<class OrdinalType> class Comm;
28 } // namespace Teuchos
29 #endif // NOT DOXYGEN_SHOULD_SKIP_THIS
30 
31 namespace Tpetra {
32 namespace Details {
33 
34 #ifdef HAVE_TPETRACORE_MPI
35 MPI_Comm
43 extractMpiCommFromTeuchos (const Teuchos::Comm<int>& comm);
44 #endif // HAVE_TPETRACORE_MPI
45 
47 bool teuchosCommIsAnMpiComm (const Teuchos::Comm<int>& comm);
48 
49 } // namespace Details
50 } // namespace Tpetra
51 
52 #endif // TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
bool teuchosCommIsAnMpiComm(const Teuchos::Comm< int > &)
Is the given Comm a Teuchos::MpiComm&lt;int&gt; instance?