Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tpetra_Details_checkGlobalError.hpp
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 
16 
17 #ifndef TPETRA_DETAILS_GLOBALERROR_HPP
18 #define TPETRA_DETAILS_GLOBALERROR_HPP
19 
20 #include "TpetraCore_config.h"
21 
22 namespace Teuchos {
23 template <class OrdinalType>
24 class Comm;
25 } // namespace Teuchos
26 
27 #include <ostream>
28 
29 namespace Tpetra {
30 namespace Details {
31 
32 void checkGlobalError(std::ostream& globalOutputStream,
33  const bool localSuccess,
34  const char localErrorMessage[],
35  const char globalErrorMessageHeader[],
36  const Teuchos::Comm<int>& comm);
37 
38 } // namespace Details
39 } // namespace Tpetra
40 
41 #endif // TPETRA_DETAILS_GLOBALERROR_HPP