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
27 template<class OrdinalType> class Comm;
28} // namespace Teuchos
29#endif // NOT DOXYGEN_SHOULD_SKIP_THIS
30
31namespace Tpetra {
32namespace Details {
33
34#ifdef HAVE_TPETRACORE_MPI
42MPI_Comm
43extractMpiCommFromTeuchos (const Teuchos::Comm<int>& comm);
44#endif // HAVE_TPETRACORE_MPI
45
47bool teuchosCommIsAnMpiComm (const Teuchos::Comm<int>& comm);
48
49} // namespace Details
50} // namespace Tpetra
51
52#endif // TPETRA_DETAILS_EXTRACTMPICOMMFROMTEUCHOS_HPP
Nonmember function that computes a residual Computes R = B - A * X.
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.