48 #ifdef HAVE_XPETRA_EPETRA
54 template<
class GlobalOrdinal,
class Node>
60 template<
class GlobalOrdinal,
class Node>
63 return epetraMap->getEpetra_Map();
66 template<
class GlobalOrdinal,
class Node>
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 const RCP< const Map<int, int, Xpetra::EpetraNode > > toXpetra<int, Xpetra::EpetraNode>(
const Epetra_BlockMap &map);
79 template const Epetra_Map & toEpetra<int, Xpetra::EpetraNode >(
const RCP< const Map<int, int, Xpetra::EpetraNode > > &map);
80 template const Epetra_Map & toEpetra<int, Xpetra::EpetraNode >(
const Map< int, int, Xpetra::EpetraNode> & map);
82 #ifdef HAVE_TPETRA_INST_SERIAL
84 template const RCP< const Map<int, int, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_BlockMap &map);
85 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const Map<int, int, Kokkos::Compat::KokkosSerialWrapperNode > > & map);
86 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosSerialWrapperNode >(
const Map< int, int, Kokkos::Compat::KokkosSerialWrapperNode> & map);
88 #ifdef HAVE_TPETRA_INST_PTHREAD
90 template const RCP< const Map<int, int, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_BlockMap &map);
91 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const Map<int, int, Kokkos::Compat::KokkosThreadsWrapperNode > > &map);
92 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosThreadsWrapperNode >(
const Map< int, int, Kokkos::Compat::KokkosThreadsWrapperNode> & map);
94 #ifdef HAVE_TPETRA_INST_OPENMP
96 template const RCP< const Map<int, int, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<int, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_BlockMap &map);
97 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const Map<int, int, Kokkos::Compat::KokkosOpenMPWrapperNode > > &map);
98 template const Epetra_Map & toEpetra<int, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const Map< int, int, Kokkos::Compat::KokkosOpenMPWrapperNode> & map);
100 #ifdef HAVE_TPETRA_INST_CUDA
101 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
103 template const RCP< const Map<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_BlockMap &map);
104 template const Epetra_Map & toEpetra<int, default_node_type >(
const RCP< const Map<int, int, default_node_type > > &map);
105 template const Epetra_Map & toEpetra<int, default_node_type >(
const Map< int, int, default_node_type> & map);
110 template const RCP< const Map<int, int, default_node_type > > toXpetra<int, default_node_type>(
const Epetra_BlockMap &map);
111 template const Epetra_Map & toEpetra<int, default_node_type >(
const RCP< const Map<int, int, default_node_type > > &map);
112 template const Epetra_Map & toEpetra<int, default_node_type >(
const Map< int, int, default_node_type> & map);
113 #endif // HAVE_XPETRA_TPETRA
116 #ifndef XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES
117 #ifdef HAVE_XPETRA_TPETRA
118 #include "TpetraCore_config.h"
119 #if ((defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_OPENMP)) || \
120 (!defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_SERIAL)))
121 template const RCP< const Map<int, long long, Xpetra::EpetraNode > > toXpetra<long long, Xpetra::EpetraNode>(
const Epetra_BlockMap &map);
122 template const Epetra_Map & toEpetra<long long, Xpetra::EpetraNode >(
const RCP< const Map<int, long long, Xpetra::EpetraNode > > &map);
123 template const Epetra_Map & toEpetra<long long, Xpetra::EpetraNode >(
const Map< int, long long, Xpetra::EpetraNode> & map);
126 #ifdef HAVE_TPETRA_INST_SERIAL
128 template const RCP< const Map<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_BlockMap &map);
129 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const Map<int, long long, Kokkos::Compat::KokkosSerialWrapperNode > > & map);
130 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosSerialWrapperNode >(
const Map< int, long long, Kokkos::Compat::KokkosSerialWrapperNode> & map);
132 #ifdef HAVE_TPETRA_INST_PTHREAD
134 template const RCP< const Map<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_BlockMap &map);
135 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const Map<int, long long, Kokkos::Compat::KokkosThreadsWrapperNode > > &map);
136 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const Map< int, long long, Kokkos::Compat::KokkosThreadsWrapperNode> & map);
138 #ifdef HAVE_TPETRA_INST_OPENMP
140 template const RCP< const Map<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_BlockMap &map);
141 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const Map<int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode > > &map);
142 template const Epetra_Map & toEpetra<long long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const Map< int, long long, Kokkos::Compat::KokkosOpenMPWrapperNode> & map);
144 #ifdef HAVE_TPETRA_INST_CUDA
145 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
147 template const RCP< const Map<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_BlockMap &map);
148 template const Epetra_Map & toEpetra<long long, default_node_type >(
const RCP< const Map<int, long long, default_node_type > > &map);
149 template const Epetra_Map & toEpetra<long long, default_node_type >(
const Map< int, long long, default_node_type> & map);
154 template const RCP< const Map<int, long long, default_node_type > > toXpetra<long long, default_node_type>(
const Epetra_BlockMap &map);
155 template const Epetra_Map & toEpetra<long long, default_node_type >(
const RCP< const Map<int, long long, default_node_type > > &map);
156 template const Epetra_Map & toEpetra<long long, default_node_type >(
const Map< int, long long, default_node_type> & map);
157 #endif // HAVE_XPETRA_TPETRA
161 #ifdef HAVE_XPETRA_TPETRA
162 #include "TpetraCore_config.h"
163 #if ((defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_OPENMP)) || \
164 (!defined(EPETRA_HAVE_OMP) && !defined(HAVE_TPETRA_INST_SERIAL)))
165 template const RCP< const Map<int, long, Xpetra::EpetraNode > > toXpetra<long, Xpetra::EpetraNode>(
const Epetra_BlockMap &map);
166 template const Epetra_Map & toEpetra<long, Xpetra::EpetraNode >(
const RCP< const Map<int, long, Xpetra::EpetraNode > > &map);
167 template const Epetra_Map & toEpetra<long, Xpetra::EpetraNode >(
const Map< int, long, Xpetra::EpetraNode> & map);
170 #ifdef HAVE_TPETRA_INST_SERIAL
172 template const RCP< const Map<int, long, Kokkos::Compat::KokkosSerialWrapperNode > > toXpetra<long, Kokkos::Compat::KokkosSerialWrapperNode>(
const Epetra_BlockMap &map);
173 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosSerialWrapperNode >(
const RCP< const Map<int, long, Kokkos::Compat::KokkosSerialWrapperNode > > & map);
174 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosSerialWrapperNode >(
const Map< int, long, Kokkos::Compat::KokkosSerialWrapperNode> & map);
176 #ifdef HAVE_TPETRA_INST_PTHREAD
178 template const RCP< const Map<int, long, Kokkos::Compat::KokkosThreadsWrapperNode > > toXpetra<long, Kokkos::Compat::KokkosThreadsWrapperNode>(
const Epetra_BlockMap &map);
179 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const RCP< const Map<int, long, Kokkos::Compat::KokkosThreadsWrapperNode > > &map);
180 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosThreadsWrapperNode >(
const Map< int, long, Kokkos::Compat::KokkosThreadsWrapperNode> & map);
182 #ifdef HAVE_TPETRA_INST_OPENMP
184 template const RCP< const Map<int, long, Kokkos::Compat::KokkosOpenMPWrapperNode > > toXpetra<long, Kokkos::Compat::KokkosOpenMPWrapperNode>(
const Epetra_BlockMap &map);
185 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const RCP< const Map<int, long, Kokkos::Compat::KokkosOpenMPWrapperNode > > &map);
186 template const Epetra_Map & toEpetra<long, Kokkos::Compat::KokkosOpenMPWrapperNode >(
const Map< int, long, Kokkos::Compat::KokkosOpenMPWrapperNode> & map);
188 #ifdef HAVE_TPETRA_INST_CUDA
189 typedef Kokkos::Compat::KokkosCudaWrapperNode default_node_type;
191 template const RCP< const Map<int, long, default_node_type > > toXpetra<long, default_node_type>(
const Epetra_BlockMap &map);
192 template const Epetra_Map & toEpetra<long, default_node_type >(
const RCP< const Map<int, long, default_node_type > > &map);
193 template const Epetra_Map & toEpetra<long, default_node_type >(
const Map< int, long, default_node_type> & map);
198 template const RCP< const Map<int, long, default_node_type > > toXpetra<long, default_node_type>(
const Epetra_BlockMap &map);
199 template const Epetra_Map & toEpetra<long, default_node_type >(
const RCP< const Map<int, long, default_node_type > > &map);
200 template const Epetra_Map & toEpetra<long, default_node_type >(
const Map< int, long, default_node_type> & map);
201 #endif // HAVE_XPETRA_TPETRA
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
const Epetra_Map & getEpetra_Map() const