Xpetra Version of the Day
Loading...
Searching...
No Matches
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
25namespace Xpetra {
26
28std::string toString(UnderlyingLib lib);
29
30#ifdef HAVE_XPETRA_TPETRA
31
33Xpetra::LookupStatus toXpetra(Tpetra::LookupStatus);
34
36Tpetra::OptimizeOption toTpetra(Xpetra::OptimizeOption);
37
39Tpetra::CombineMode toTpetra(Xpetra::CombineMode CM);
40
42Tpetra::LocalGlobal toTpetra(LocalGlobal lg);
43
44#endif // HAVE_XPETRA_TPETRA
45
46#ifdef HAVE_XPETRA_EPETRA
47
50
53
56
57#endif // HAVE_XPETRA_EPETRA
58
59} // namespace Xpetra
60
61#endif // XPETRA_LOOKUPSTATUS_HPP
Epetra_CombineMode
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
std::string toString(Xpetra::UnderlyingLib lib)
Convert a Xpetra::UnderlyingLib to a std::string.
CombineMode
Xpetra::Combine Mode enumerable type.