Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
21 namespace Teuchos {
22 // Forward declaration of Comm.
23 template <class OrdinalType> class Comm;
24 } // namespace Teuchos
25 #endif // DOXYGEN_SHOULD_SKIP_THIS
26 
27 namespace Tpetra {
28 namespace Details {
29 
42 void
43 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
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)...