56 template<
class GlobalOrdinal,
class Node>
59 return *(epetraGraph->getEpetra_CrsGraph());
63 template<
class GlobalOrdinal,
class Node>
64 RCP<const CrsGraph<int, GlobalOrdinal, Node> >
67 RCP<const Epetra_CrsGraph> const_graph = rcp (
new Epetra_CrsGraph (g));
68 RCP<Epetra_CrsGraph> graph =
69 Teuchos::rcp_const_cast<Epetra_CrsGraph> (const_graph);
73 #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES 74 #ifdef HAVE_XPETRA_TPETRA 75 #include "TpetraCore_config.h" 76 #if ((defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_OPENMP)) || \ 77 (!defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_SERIAL))) 78 template class EpetraCrsGraphT<int, Xpetra::EpetraNode >;
79 template RCP< const CrsGraph<int, int, Xpetra::EpetraNode > > toXpetra<int, Xpetra::EpetraNode>(
const Epetra_CrsGraph &g);
80 template const Epetra_CrsGraph & toEpetra<int, Xpetra::EpetraNode >(
const RCP< const CrsGraph<int, int, Xpetra::EpetraNode > > &graph);
82 #ifdef HAVE_TPETRA_INST_SERIAL 83 template class EpetraCrsGraphT<int, Kokkos::Compat::KokkosSerialWrapperNode >;
84 template RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_CrsGraph &g);
85 template const Epetra_CrsGraph & toEpetra<int, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosSerialWrapperNode > > &graph);
87 #ifdef HAVE_TPETRA_INST_PTHREAD 88 template class EpetraCrsGraphT<int, Kokkos::Compat::KokkosThreadsWrapperNode>;
89 template RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_CrsGraph &g);
90 template const Epetra_CrsGraph & toEpetra<int, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosThreadsWrapperNode > > &graph);
92 #ifdef HAVE_TPETRA_INST_OPENMP 93 template class EpetraCrsGraphT<int, Kokkos::Compat::KokkosOpenMPWrapperNode >;
94 template RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_CrsGraph &g);
95 template const Epetra_CrsGraph & toEpetra<int, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const CrsGraph<int, int, Kokkos::Compat::KokkosOpenMPWrapperNode > > &graph);
97 #ifdef HAVE_TPETRA_INST_CUDA 98 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
99 template class EpetraCrsGraphT<int, default_node_type >;
100 template RCP< const CrsGraph<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_CrsGraph &g);
101 template const Epetra_CrsGraph & toEpetra<int, default_node_type >(
const RCP< const CrsGraph<int, int, default_node_type > > &graph);
103 #ifdef HAVE_TPETRA_INST_HIP 104 typedef Kokkos::Compat::KokkosHIPWrapperNode default_node_type;
105 template class EpetraCrsGraphT<int, default_node_type >;
106 template RCP< const CrsGraph<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_CrsGraph &g);
107 template const Epetra_CrsGraph & toEpetra<int, default_node_type >(
const RCP< const CrsGraph<int, int, default_node_type > > &graph);
112 template class EpetraCrsGraphT<int, default_node_type >;
113 template RCP< const CrsGraph<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_CrsGraph &g);
114 template const Epetra_CrsGraph & toEpetra<int, default_node_type >(
const RCP< const CrsGraph<int, int, default_node_type > > &graph);
115 #endif // HAVE_XPETRA_TPETRA 118 #ifndef XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES 119 #ifdef HAVE_XPETRA_TPETRA 120 #include "TpetraCore_config.h" 121 #if ((defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_OPENMP)) || \ 122 (!defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_SERIAL))) 123 template class EpetraCrsGraphT<long long, Xpetra::EpetraNode >;
124 template RCP< const CrsGraph<int, long long, Xpetra::EpetraNode > > toXpetra<long long, Xpetra::EpetraNode>(
const Epetra_CrsGraph &g);
125 template const Epetra_CrsGraph & toEpetra<long long, Xpetra::EpetraNode >(
const RCP< const CrsGraph<int, long long, Xpetra::EpetraNode > > &graph);
127 #ifdef HAVE_TPETRA_INST_SERIAL 128 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosSerialWrapperNode >;
129 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_CrsGraph &g);
130 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > &graph);
132 #ifdef HAVE_TPETRA_INST_PTHREAD 133 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosThreadsWrapperNode>;
134 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_CrsGraph &g);
135 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > &graph);
137 #ifdef HAVE_TPETRA_INST_OPENMP 138 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >;
139 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_CrsGraph &g);
140 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > &graph);
142 #ifdef HAVE_TPETRA_INST_CUDA 143 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
144 template class EpetraCrsGraphT<long long, default_node_type >;
145 template RCP< const CrsGraph<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_CrsGraph &g);
146 template const Epetra_CrsGraph & toEpetra<long long, default_node_type >(
const RCP< const CrsGraph<int, long long, default_node_type > > &graph);
148 #ifdef HAVE_TPETRA_INST_HIP 149 typedef Kokkos::Compat::KokkosHIPWrapperNode default_node_type;
150 template class EpetraCrsGraphT<long long, default_node_type >;
151 template RCP< const CrsGraph<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_CrsGraph &g);
152 template const Epetra_CrsGraph & toEpetra<long long, default_node_type >(
const RCP< const CrsGraph<int, long long, default_node_type > > &graph);
157 template class EpetraCrsGraphT<long long, default_node_type >;
158 template RCP< const CrsGraph<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_CrsGraph &g);
159 template const Epetra_CrsGraph & toEpetra<long long, default_node_type >(
const RCP< const CrsGraph<int, long long, default_node_type > > &graph);
160 #endif // HAVE_XPETRA_TPETRA
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)