46 #ifndef XPETRA_TPETRAMAP_HPP
47 #define XPETRA_TPETRAMAP_HPP
53 #include <Tpetra_Map.hpp>
63 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
66 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
67 const RCP<const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node > >
toTpetra(
const RCP<
const Map<LocalOrdinal,GlobalOrdinal,Node> >&);
69 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
70 const RCP<const Map<LocalOrdinal,GlobalOrdinal,Node > >
toXpetra(
const RCP<
const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> >&);
72 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
73 const RCP<Map<LocalOrdinal,GlobalOrdinal,Node > >
toXpetraNonConst(
const RCP<
const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> >&);
76 template <class LocalOrdinal = Map<>::local_ordinal_type,
77 class GlobalOrdinal =
typename Map<LocalOrdinal>::global_ordinal_type,
78 class Node =
typename Map<LocalOrdinal, GlobalOrdinal>::node_type>
80 :
public virtual Map<LocalOrdinal,GlobalOrdinal,Node> {
88 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
91 GlobalOrdinal indexBase,
95 :
TpetraMap(numGlobalElements, indexBase, comm, lg)
97 #endif // TPETRA_ENABLE_DEPRECATED_CODE
99 GlobalOrdinal indexBase,
102 :
map_ (Teuchos::
rcp (new Tpetra::
Map< LocalOrdinal, GlobalOrdinal, Node > (numGlobalElements,
108 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
111 size_t numLocalElements,
112 GlobalOrdinal indexBase,
115 : TpetraMap(numGlobalElements, numLocalElements, indexBase, comm)
117 #endif // TPETRA_ENABLE_DEPRECATED_CODE
119 size_t numLocalElements,
120 GlobalOrdinal indexBase,
122 :
map_ (Teuchos::
rcp (new Tpetra::
Map< LocalOrdinal, GlobalOrdinal, Node > (numGlobalElements,
128 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
132 GlobalOrdinal indexBase,
135 : TpetraMap(numGlobalElements, elementList, indexBase, comm)
137 #endif // TPETRA_ENABLE_DEPRECATED_CODE
140 GlobalOrdinal indexBase,
142 :
map_(Teuchos::
rcp(new Tpetra::
Map< LocalOrdinal, GlobalOrdinal, Node >(numGlobalElements,
148 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
149 #ifdef HAVE_XPETRA_TPETRA
152 const Kokkos::View<const GlobalOrdinal*, typename Node::device_type>& indexList,
153 GlobalOrdinal indexBase,
155 :
map_(Teuchos::
rcp(new Tpetra::
Map< LocalOrdinal, GlobalOrdinal, Node >(numGlobalElements,
244 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
247 #endif // TPETRA_ENABLE_DEPRECATED_CODE
267 #ifdef XPETRA_ENABLE_DEPRECATED_CODE
268 template<
class Node2>
289 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
290 #ifdef HAVE_XPETRA_TPETRA
293 local_map_type getLocalMap ()
const {
294 return map_->getLocalMap();
308 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
315 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
318 if (map != Teuchos::null) {
320 return tpetraMap->getTpetra_Map();
322 return Teuchos::null;
327 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
332 return tpetraMap->getTpetra_Map();
335 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
340 return Teuchos::null;
343 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
348 return Teuchos::null;
352 namespace useTpetra {
355 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
356 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
361 return createLocalMapWithNode<LocalOrdinal,GlobalOrdinal,Node>
364 #endif // TPETRA_ENABLE_DEPRECATED_CODE
365 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
375 template <
class LocalOrdinal,
class GlobalOrdinal>
384 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
385 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
391 return createContigMapWithNode<LocalOrdinal,GlobalOrdinal,Node>
392 (numElements, localNumElements, comm);
394 #endif // TPETRA_ENABLE_DEPRECATED_CODE
395 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
406 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
409 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
410 const RCP<const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node > >
toTpetra(
const RCP<
const Map<LocalOrdinal,GlobalOrdinal,Node> >&);
412 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
413 const RCP<const Map<LocalOrdinal,GlobalOrdinal,Node > >
toXpetra(
const RCP<
const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> >&);
415 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
416 const RCP<Map<LocalOrdinal,GlobalOrdinal,Node > >
toXpetraNonConst(
const RCP<
const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> >&);
418 #ifdef HAVE_XPETRA_EPETRA
420 #if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \
421 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
426 :
public virtual Map<int,int,EpetraNode> {
437 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
444 : TpetraMap(numGlobalElements, indexBase, comm, lg)
446 #endif // TPETRA_ENABLE_DEPRECATED_CODE
455 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
458 size_t numLocalElements,
459 GlobalOrdinal indexBase,
462 : TpetraMap(numGlobalElements, numLocalElements, indexBase, comm)
464 #endif // TPETRA_ENABLE_DEPRECATED_CODE
466 size_t numLocalElements,
473 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
477 GlobalOrdinal indexBase,
480 : TpetraMap(numGlobalElements, elementList, indexBase, comm)
482 #endif // TPETRA_ENABLE_DEPRECATED_CODE
571 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
574 #endif // TPETRA_ENABLE_DEPRECATED_CODE
590 #ifdef XPETRA_ENABLE_DEPRECATED_CODE
591 template<
class Node2>
610 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
611 #ifdef HAVE_XPETRA_TPETRA
614 local_map_type getLocalMap ()
const {
615 return local_map_type();
625 #if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))) || \
626 (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))))
630 :
public virtual Map<int,long long,EpetraNode> {
641 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
648 : TpetraMap(numGlobalElements, indexBase, comm, lg)
650 #endif // TPETRA_ENABLE_DEPRECATED_CODE
659 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
662 size_t numLocalElements,
663 GlobalOrdinal indexBase,
666 : TpetraMap(numGlobalElements, numLocalElements, indexBase, comm)
668 #endif // TPETRA_ENABLE_DEPRECATED_CODE
670 size_t numLocalElements,
677 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
681 GlobalOrdinal indexBase,
684 : TpetraMap(numGlobalElements, elementList, indexBase, comm)
686 #endif // TPETRA_ENABLE_DEPRECATED_CODE
775 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
778 #endif // TPETRA_ENABLE_DEPRECATED_CODE
794 #ifdef XPETRA_ENABLE_DEPRECATED_CODE
795 template<
class Node2>
814 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
815 #ifdef HAVE_XPETRA_TPETRA
818 local_map_type getLocalMap ()
const {
820 return local_map_type();
829 #endif // HAVE_XPETRA_EPETRA
835 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
842 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
848 #define XPETRA_TPETRAMAP_SHORT
849 #endif // XPETRA_TPETRAMAP_HPP
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > replaceCommWithSubset(const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const
Replace this Map's communicator with a subset communicator.
bool operator!=(const Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > &map1, const Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > &map2)
Returns true if map is not identical to this map. Implemented in TpetraMap::isSameAs().
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this node.
RCP< Map< LocalOrdinal, GlobalOrdinal, Node2 > > clone(const Map< LocalOrdinal, GlobalOrdinal, Node1 > &map, const RCP< Node2 > &node2)
TpetraMap(global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with user-defined arbitrary (possibly noncontiguous) distribution.
std::string description() const
Return a simple one-line description of this object.
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > removeEmptyProcesses() const
Return a new Map with processes with zero elements removed.
LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
bool isCompatible(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is compatible with this Map.
TpetraMap(global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with a user-defined contiguous distribution.
UnderlyingLib lib() const
Get the library used by this object (Tpetra or Epetra?)
Teuchos::RCP< const TpetraMap< LocalOrdinal, GlobalOrdinal > > createContigMap(global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Non-member function to create a (potentially) non-uniform, contiguous Map with the default node...
GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
The global index corresponding to the given local index.
UnderlyingLib lib() const
Get the library used by this object (Tpetra or Epetra?)
const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > toTpetraNonZero(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
GlobalOrdinal getMaxAllGlobalIndex() const
The maximum global index over all processes in the communicator.
LocalOrdinal getMinLocalIndex() const
The minimum local index.
global_size_t getGlobalNumElements() const
The number of elements in this Map.
bool isDistributed() const
Whether this Map is globally distributed or locally replicated.
bool isDistributed() const
Whether this Map is globally distributed or locally replicated.
bool isContiguous() const
True if this Map is distributed contiguously, else false.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Map() const
Get the underlying Tpetra map.
GlobalOrdinal getMaxAllGlobalIndex() const
The maximum global index over all processes in the communicator.
TpetraMap(const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
TpetraMap constructor to wrap a Tpetra::Map object.
bool isNodeLocalElement(LocalOrdinal localIndex) const
True if the local index is valid for this Map on this node, else false.
bool isNodeLocalElement(LocalOrdinal localIndex) const
True if the local index is valid for this Map on this node, else false.
GlobalOrdinal getMaxAllGlobalIndex() const
The maximum global index over all processes in the communicator.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const
Return the process IDs for the given global IDs.
bool isNodeLocalElement(LocalOrdinal localIndex) const
True if the local index is valid for this Map on this node, else false.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print this object with the given verbosity level to the given FancyOStream.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const
Return the process IDs and corresponding local IDs for the given global IDs.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print this object with the given verbosity level to the given FancyOStream.
bool isSameAs(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is identical to this Map.
#define XPETRA_TPETRA_ETI_EXCEPTION(cl, obj, go, node)
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this node.
LocalOrdinal getMinLocalIndex() const
The minimum local index.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print this object with the given verbosity level to the given FancyOStream.
LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
The local index corresponding to the given global index.
GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
The global index corresponding to the given local index.
GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
GlobalOrdinal getIndexBase() const
The index base for this Map.
global_size_t getGlobalNumElements() const
The number of elements in this Map.
GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const
Return the process IDs for the given global IDs.
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > replaceCommWithSubset(const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const
Replace this Map's communicator with a subset communicator.
virtual RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
TpetraMap(const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
TpetraMap constructor to wrap a Tpetra::Map object.
Teuchos::RCP< const TpetraMap< LocalOrdinal, GlobalOrdinal, Node > > createLocalMapWithNode(size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Non-member function to create a locally replicated Map with a specified node.
bool isSameAs(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is identical to this Map.
Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get this Map's Comm object.
TpetraMap(global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with a user-defined contiguous distribution.
TpetraMap(global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with a user-defined contiguous distribution.
GlobalOrdinal getMinAllGlobalIndex() const
The minimum global index over all processes in the communicator.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const
Return the process IDs for the given global IDs.
Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get this Map's Comm object.
bool isCompatible(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is compatible with this Map.
bool isSameAs(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is identical to this Map.
bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
True if the global index is found in this Map on this node, else false.
const RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > toXpetraNonConst(const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &)
bool isContiguous() const
True if this Map is distributed contiguously, else false.
LocalOrdinal getMinLocalIndex() const
The minimum local index.
GlobalOrdinal getMinAllGlobalIndex() const
The minimum global index over all processes in the communicator.
size_t global_size_t
Global size_t object.
static const EVerbosityLevel verbLevel_default
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > removeEmptyProcesses() const
Return a new Map with processes with zero elements removed.
GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
GlobalOrdinal getIndexBase() const
The index base for this Map.
GlobalOrdinal getIndexBase() const
The index base for this Map.
RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Map() const
Get the underlying Tpetra map.
bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
True if the global index is found in this Map on this node, else false.
LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
bool operator==(const Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > &map1, const Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > &map2)
Returns true if map is identical to this map. Implemented in TpetraMap::isSameAs().
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > replaceCommWithSubset(const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const
Replace this Map's communicator with a subset communicator.
std::string description() const
Return a simple one-line description of this object.
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
The local index corresponding to the given global index.
RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Map() const
Get the underlying Tpetra map.
Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get this Map's Comm object.
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
The global index corresponding to the given local index.
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
size_t getNodeNumElements() const
The number of elements belonging to the calling node.
GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this node.
LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
The local index corresponding to the given global index.
UnderlyingLib lib() const
Get the library used by this object (Tpetra or Epetra?)
LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
size_t getNodeNumElements() const
The number of elements belonging to the calling node.
GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > map_
bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
True if the global index is found in this Map on this node, else false.
bool isContiguous() const
True if this Map is distributed contiguously, else false.
#define XPETRA_MONITOR(funcName)
size_t getNodeNumElements() const
The number of elements belonging to the calling node.
bool isDistributed() const
Whether this Map is globally distributed or locally replicated.
bool isCompatible(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is compatible with this Map.
TpetraMap(const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
TpetraMap constructor to wrap a Tpetra::Map object.
TpetraMap(global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed)
Constructor with Tpetra-defined contiguous uniform distribution.
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > removeEmptyProcesses() const
Return a new Map with processes with zero elements removed.
global_size_t getGlobalNumElements() const
The number of elements in this Map.
Teuchos::RCP< const TpetraMap< LocalOrdinal, GlobalOrdinal, Node > > createContigMapWithNode(global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Non-member function to create a (potentially) non-uniform, contiguous Map with a user-specified node...
GlobalOrdinal getMinAllGlobalIndex() const
The minimum global index over all processes in the communicator.
TpetraMap(global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with user-defined arbitrary (possibly noncontiguous) distribution.
TpetraMap(global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed)
Constructor with Tpetra-defined contiguous uniform distribution.
TpetraMap(global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
Constructor with user-defined arbitrary (possibly noncontiguous) distribution.
std::string description() const
Return a simple one-line description of this object.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const
Return the process IDs and corresponding local IDs for the given global IDs.
TpetraMap(global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed)
Constructor with Tpetra-defined contiguous uniform distribution.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const
Return the process IDs and corresponding local IDs for the given global IDs.