Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra_Utils.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Xpetra: A linear algebra interface package
4 //
5 // Copyright 2012 NTESS and the Xpetra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef XPETRA_LOOKUPSTATUS_HPP
11 #define XPETRA_LOOKUPSTATUS_HPP
12 
13 #include "Xpetra_ConfigDefs.hpp"
14 
15 #ifdef HAVE_XPETRA_TPETRA
16 #include "Tpetra_ConfigDefs.hpp"
17 #endif
18 
19 #ifdef HAVE_XPETRA_EPETRA
20 #include "Epetra_CombineMode.h"
21 #endif
22 
23 #include "Xpetra_Map.hpp" // definition of UnderlyingLib
24 
25 namespace Xpetra {
26 
28 std::string toString(UnderlyingLib lib);
29 
30 #ifdef HAVE_XPETRA_TPETRA
31 
34 
37 
40 
43 
44 #endif // HAVE_XPETRA_TPETRA
45 
46 #ifdef HAVE_XPETRA_EPETRA
47 
50 
53 
55 Epetra_CombineMode toEpetra(Xpetra::CombineMode CM);
56 
57 #endif // HAVE_XPETRA_EPETRA
58 
59 } // namespace Xpetra
60 
61 #endif // XPETRA_LOOKUPSTATUS_HPP
std::string toString(Xpetra::UnderlyingLib lib)
Convert a Xpetra::UnderlyingLib to a std::string.
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
CombineMode
Xpetra::Combine Mode enumerable type.
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)