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>
28 class Comm;
29 } // namespace Teuchos
30 #endif // NOT DOXYGEN_SHOULD_SKIP_THIS
31 
32 namespace Tpetra {
33 namespace Details {
34 
35 #ifdef HAVE_TPETRACORE_MPI
36 MPI_Comm
44 extractMpiCommFromTeuchos(const Teuchos::Comm<int>& comm);
45 #endif // HAVE_TPETRACORE_MPI
46 
48 bool teuchosCommIsAnMpiComm(const Teuchos::Comm<int>& comm);
49 
50 } // namespace Details
51 } // namespace Tpetra
52 
53 #endif // TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
bool teuchosCommIsAnMpiComm(const Teuchos::Comm< int > &)
Is the given Comm a Teuchos::MpiComm&lt;int&gt; instance?