Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra_EpetraUtils.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_COMM_HPP
11#define XPETRA_COMM_HPP
12
14
15#include "Xpetra_ConfigDefs.hpp"
16
17#ifdef HAVE_XPETRA_EPETRA
18
19// header files for comm objects conversion
20#include <Teuchos_Comm.hpp>
21#include <Epetra_Comm.h>
22
23// header file for Teuchos::ETransp
25
26namespace Xpetra {
27
28using Teuchos::RCP;
29
31const RCP<const Epetra_Comm> toEpetra(const RCP<const Teuchos::Comm<int> >& comm);
32
34const RCP<const Teuchos::Comm<int> > toXpetra(const Epetra_Comm& comm);
35
38
39} // namespace Xpetra
40#endif // HAVE_XPETRA_EPETRA
41
42#endif // XPETRA_EPETRACOMM_HPP
43
44// TODO: remove return RCP for toEpetra?
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)