46 #ifndef XPETRA_MAPFACTORY_DECL_HPP
47 #define XPETRA_MAPFACTORY_DECL_HPP
51 #include "Xpetra_Map.hpp"
61 template<
class LocalOrdinal,
63 class Node =
typename Map<LocalOrdinal, GlobalOrdinal>::node_type>
79 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
84 GlobalOrdinal indexBase,
88 #endif // TPETRA_ENABLE_DEPRECATED_CODE
94 GlobalOrdinal indexBase,
100 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
105 size_t numLocalElements,
106 GlobalOrdinal indexBase,
109 #endif // TPETRA_ENABLE_DEPRECATED_CODE
115 size_t numLocalElements,
116 GlobalOrdinal indexBase,
121 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
127 GlobalOrdinal indexBase,
130 #endif // TPETRA_ENABLE_DEPRECATED_CODE
137 GlobalOrdinal indexBase,
145 LocalOrdinal numDofPerNode);
148 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
149 #ifdef HAVE_XPETRA_TPETRA
153 const Kokkos::View<const GlobalOrdinal*, typename Node::device_type>& indexList,
154 GlobalOrdinal indexBase,
157 #endif // HAVE_XPETRA_KOKKOS_REFACTOR
168 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
175 #endif // TPETRA_ENABLE_DEPRECATED_CODE
185 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
192 #endif // TPETRA_ENABLE_DEPRECATED_CODE
212 size_t localNumElements,
217 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
222 size_t localNumElements,
225 #endif // TPETRA_ENABLE_DEPRECATED_CODE
231 size_t localNumElements,
244 #if defined(HAVE_XPETRA_EPETRA)
247 #if !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)
266 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
275 #endif // TPETRA_ENABLE_DEPRECATED_CODE
286 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
291 size_t numLocalElements,
295 #endif // TPETRA_ENABLE_DEPRECATED_CODE
301 size_t numLocalElements,
306 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
315 #endif // TPETRA_ENABLE_DEPRECATED_CODE
339 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
346 #endif // TPETRA_ENABLE_DEPRECATED_CODE
356 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
362 #endif // TPETRA_ENABLE_DEPRECATED_CODE
380 size_t localNumElements,
384 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
389 size_t localNumElements,
392 #endif // TPETRA_ENABLE_DEPRECATED_CODE
398 size_t localNumElements,
404 #endif // #if !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)
412 #if !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)
430 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
439 #endif // TPETRA_ENABLE_DEPRECATED_CODE
450 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
455 size_t numLocalElements,
459 #endif // TPETRA_ENABLE_DEPRECATED_CODE
465 size_t numLocalElements,
470 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
479 #endif // TPETRA_ENABLE_DEPRECATED_CODE
503 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
510 #endif // TPETRA_ENABLE_DEPRECATED_CODE
519 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
525 #endif // TPETRA_ENABLE_DEPRECATED_CODE
542 size_t localNumElements,
546 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
551 size_t localNumElements,
554 #endif // TPETRA_ENABLE_DEPRECATED_CODE
560 size_t localNumElements,
566 #endif // #if !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)
569 #endif // #if defined(HAVE_XPETRA_EPETRA)
575 #define XPETRA_MAPFACTORY_SHORT
577 #endif // XPETRA_MAPFACTORY_DECL_HPP
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createLocalMap(UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a locally replicated Map with the default node.
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createContigMap(UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a (potentially) non-uniform, contiguous Map with the default node.
MapFactory()
Private constructor. This is a static class.
static Teuchos::RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Build(UnderlyingLib lib, global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int >> &comm, LocalGlobal lg=Xpetra::GloballyDistributed)
Map constructor with Xpetra-defined contiguous uniform distribution.
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createContigMapWithNode(UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a (potentially) non-uniform, contiguous Map with a user-specified node.
size_t global_size_t
Global size_t object.
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createUniformContigMapWithNode(UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a uniform, contiguous Map with a user-specified node.
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createLocalMapWithNode(UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a locally replicated Map with a specified node.
Create an Xpetra::Map instance.
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createUniformContigMap(UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int >> &comm)
Create a uniform, contiguous Map with the default node.