Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Tpetra_Details_printOnce.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
12
13#ifndef TPETRA_DETAILS_PRINTONCE_HPP
14#define TPETRA_DETAILS_PRINTONCE_HPP
15
16#include "TpetraCore_config.h"
17#include <ostream>
18#include <string>
19
20#ifndef DOXYGEN_SHOULD_SKIP_THIS
21namespace Teuchos {
22// Forward declaration of Comm.
23template <class OrdinalType>
24class Comm;
25} // namespace Teuchos
26#endif // DOXYGEN_SHOULD_SKIP_THIS
27
28namespace Tpetra {
29namespace Details {
30
43void printOnce(std::ostream& out,
44 const std::string& s,
45 const Teuchos::Comm<int>* comm);
46
47} // namespace Details
48} // namespace Tpetra
49
50#endif // TPETRA_DETAILS_PRINTONCE_HPP
Implementation details of Tpetra.
void printOnce(std::ostream &out, const std::string &s, const Teuchos::Comm< int > *comm)
Print on one process of the given communicator, or at least try to do so (if MPI is not initialized).
Namespace Tpetra contains the class and methods constituting the Tpetra library.