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);
106 template class EpetraCrsGraphT<int, default_node_type >;
107 template RCP< const CrsGraph<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_CrsGraph &g);
108 template const Epetra_CrsGraph & toEpetra<int, default_node_type >(
const RCP< const CrsGraph<int, int, default_node_type > > &graph);
109 #endif // HAVE_XPETRA_TPETRA
112 #ifndef XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES
113 #ifdef HAVE_XPETRA_TPETRA
114 #include "TpetraCore_config.h"
115 #if ((defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_OPENMP)) || \
116 (!defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_SERIAL)))
117 template class EpetraCrsGraphT<long long, Xpetra::EpetraNode >;
118 template RCP< const CrsGraph<int, long long, Xpetra::EpetraNode > > toXpetra<long long, Xpetra::EpetraNode>(
const Epetra_CrsGraph &g);
119 template const Epetra_CrsGraph & toEpetra<long long, Xpetra::EpetraNode >(
const RCP< const CrsGraph<int, long long, Xpetra::EpetraNode > > &graph);
121 #ifdef HAVE_TPETRA_INST_SERIAL
122 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosSerialWrapperNode >;
123 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_CrsGraph &g);
124 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > &graph);
126 #ifdef HAVE_TPETRA_INST_PTHREAD
127 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosThreadsWrapperNode>;
128 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_CrsGraph &g);
129 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > &graph);
131 #ifdef HAVE_TPETRA_INST_OPENMP
132 template class EpetraCrsGraphT<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >;
133 template RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_CrsGraph &g);
134 template const Epetra_CrsGraph & toEpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const CrsGraph<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > &graph);
136 #ifdef HAVE_TPETRA_INST_CUDA
137 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
138 template class EpetraCrsGraphT<long long, default_node_type >;
139 template RCP< const CrsGraph<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_CrsGraph &g);
140 template const Epetra_CrsGraph & toEpetra<long long, default_node_type >(
const RCP< const CrsGraph<int, long long, default_node_type > > &graph);
145 template class EpetraCrsGraphT<long long, default_node_type >;
146 template RCP< const CrsGraph<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_CrsGraph &g);
147 template const Epetra_CrsGraph & toEpetra<long long, default_node_type >(
const RCP< const CrsGraph<int, long long, default_node_type > > &graph);
148 #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)