Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
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
25namespace Teuchos {
26// forward declaration of Comm
27template <class OrdinalType>
28class Comm;
29} // namespace Teuchos
30#endif // NOT DOXYGEN_SHOULD_SKIP_THIS
31
32namespace Tpetra {
33namespace Details {
34
35#ifdef HAVE_TPETRACORE_MPI
43MPI_Comm
44extractMpiCommFromTeuchos(const Teuchos::Comm<int>& comm);
45#endif // HAVE_TPETRACORE_MPI
46
48bool teuchosCommIsAnMpiComm(const Teuchos::Comm<int>& comm);
49
50} // namespace Details
51} // namespace Tpetra
52
53#endif // TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
Implementation details of Tpetra.
bool teuchosCommIsAnMpiComm(const Teuchos::Comm< int > &)
Is the given Comm a Teuchos::MpiComm<int> instance?
Namespace Tpetra contains the class and methods constituting the Tpetra library.