Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra::TpetraMap< int, long long, EpetraNode > Class Template Reference

#include <Xpetra_TpetraMap_def.hpp>

Inheritance diagram for Xpetra::TpetraMap< int, long long, EpetraNode >:
Xpetra::Map< int, long long, EpetraNode >

Public Types

typedef long long GlobalOrdinal
 
typedef int LocalOrdinal
 
typedef EpetraNode Node
 
- Public Types inherited from Xpetra::Map< int, long long, EpetraNode >
typedef int local_ordinal_type
 
typedef long long global_ordinal_type
 
typedef EpetraNode node_type
 
typedef Kokkos::View< const
global_ordinal_type
*, typename
EpetraNode::device_type > 
global_indices_array_device_type
 
typedef Tpetra::Map< int, long
long, EpetraNode >
::local_map_type 
local_map_type
 

Constructors and destructor

 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. More...
 
 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. More...
 
 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. More...
 
 ~TpetraMap ()
 Destructor. More...
 

Attributes

global_size_t getGlobalNumElements () const
 The number of elements in this Map. More...
 
size_t getLocalNumElements () const
 The number of elements belonging to the calling node. More...
 
GlobalOrdinal getIndexBase () const
 The index base for this Map. More...
 
LocalOrdinal getMinLocalIndex () const
 The minimum local index. More...
 
LocalOrdinal getMaxLocalIndex () const
 The maximum local index on the calling process. More...
 
GlobalOrdinal getMinGlobalIndex () const
 The minimum global index owned by the calling process. More...
 
GlobalOrdinal getMaxGlobalIndex () const
 The maximum global index owned by the calling process. More...
 
GlobalOrdinal getMinAllGlobalIndex () const
 The minimum global index over all processes in the communicator. More...
 
GlobalOrdinal getMaxAllGlobalIndex () const
 The maximum global index over all processes in the communicator. More...
 
LocalOrdinal getLocalElement (GlobalOrdinal globalIndex) const
 The local index corresponding to the given global index. More...
 
GlobalOrdinal getGlobalElement (LocalOrdinal localIndex) const
 The global index corresponding to the given local index. More...
 
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. More...
 
LookupStatus getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const
 Return the process IDs for the given global IDs. More...
 
Teuchos::ArrayView< const
GlobalOrdinal
getLocalElementList () const
 Return a view of the global indices owned by this node. More...
 

Boolean tests

bool isNodeLocalElement (LocalOrdinal localIndex) const
 True if the local index is valid for this Map on this node, else false. More...
 
bool isNodeGlobalElement (GlobalOrdinal globalIndex) const
 True if the global index is found in this Map on this node, else false. More...
 
bool isContiguous () const
 True if this Map is distributed contiguously, else false. More...
 
bool isDistributed () const
 Whether this Map is globally distributed or locally replicated. More...
 
bool isCompatible (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
 True if and only if map is compatible with this Map. More...
 
bool isSameAs (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
 True if and only if map is identical to this Map. More...
 
Teuchos::RCP< const
Teuchos::Comm< int > > 
getComm () const
 Get this Map's Comm object. More...
 
std::string description () const
 Return a simple one-line description of this object. More...
 
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. More...
 
RCP< const Map< LocalOrdinal,
GlobalOrdinal, Node > > 
removeEmptyProcesses () const
 Return a new Map with processes with zero elements removed. More...
 
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. More...
 

Xpetra specific

using local_map_type = typename Map< LocalOrdinal, GlobalOrdinal, Node >::local_map_type
 
 TpetraMap (const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
 TpetraMap constructor to wrap a Tpetra::Map object. More...
 
UnderlyingLib lib () const
 Get the library used by this object (Tpetra or Epetra?) More...
 
RCP< const Tpetra::Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
getTpetra_Map () const
 Get the underlying Tpetra map. More...
 
local_map_type getLocalMap () const
 Get the local Map for Kokkos kernels. More...
 

Detailed Description

template<>
class Xpetra::TpetraMap< int, long long, EpetraNode >

Definition at line 456 of file Xpetra_TpetraMap_def.hpp.

Member Typedef Documentation

typedef long long Xpetra::TpetraMap< int, long long, EpetraNode >::GlobalOrdinal

Definition at line 459 of file Xpetra_TpetraMap_def.hpp.

typedef int Xpetra::TpetraMap< int, long long, EpetraNode >::LocalOrdinal

Definition at line 460 of file Xpetra_TpetraMap_def.hpp.

typedef EpetraNode Xpetra::TpetraMap< int, long long, EpetraNode >::Node

Definition at line 461 of file Xpetra_TpetraMap_def.hpp.

Definition at line 602 of file Xpetra_TpetraMap_def.hpp.

Constructor & Destructor Documentation

Xpetra::TpetraMap< int, long long, EpetraNode >::TpetraMap ( global_size_t  numGlobalElements,
GlobalOrdinal  indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > &  comm,
LocalGlobal  lg = GloballyDistributed 
)
inline

Constructor with Tpetra-defined contiguous uniform distribution.

Definition at line 467 of file Xpetra_TpetraMap_def.hpp.

Xpetra::TpetraMap< int, long long, EpetraNode >::TpetraMap ( global_size_t  numGlobalElements,
size_t  numLocalElements,
GlobalOrdinal  indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > &  comm 
)
inline

Constructor with a user-defined contiguous distribution.

Definition at line 475 of file Xpetra_TpetraMap_def.hpp.

Xpetra::TpetraMap< int, long long, EpetraNode >::TpetraMap ( global_size_t  numGlobalElements,
const Teuchos::ArrayView< const GlobalOrdinal > &  elementList,
GlobalOrdinal  indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > &  comm 
)
inline

Constructor with user-defined arbitrary (possibly noncontiguous) distribution.

Definition at line 483 of file Xpetra_TpetraMap_def.hpp.

Xpetra::TpetraMap< int, long long, EpetraNode >::~TpetraMap ( )
inline

Destructor.

Definition at line 491 of file Xpetra_TpetraMap_def.hpp.

Xpetra::TpetraMap< int, long long, EpetraNode >::TpetraMap ( const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  map)
inline

TpetraMap constructor to wrap a Tpetra::Map object.

Definition at line 591 of file Xpetra_TpetraMap_def.hpp.

Member Function Documentation

global_size_t Xpetra::TpetraMap< int, long long, EpetraNode >::getGlobalNumElements ( ) const
inlinevirtual

The number of elements in this Map.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 499 of file Xpetra_TpetraMap_def.hpp.

size_t Xpetra::TpetraMap< int, long long, EpetraNode >::getLocalNumElements ( ) const
inlinevirtual

The number of elements belonging to the calling node.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 502 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getIndexBase ( ) const
inlinevirtual

The index base for this Map.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 505 of file Xpetra_TpetraMap_def.hpp.

LocalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMinLocalIndex ( ) const
inlinevirtual

The minimum local index.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 508 of file Xpetra_TpetraMap_def.hpp.

LocalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMaxLocalIndex ( ) const
inlinevirtual

The maximum local index on the calling process.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 511 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMinGlobalIndex ( ) const
inlinevirtual

The minimum global index owned by the calling process.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 514 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMaxGlobalIndex ( ) const
inlinevirtual

The maximum global index owned by the calling process.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 517 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMinAllGlobalIndex ( ) const
inlinevirtual

The minimum global index over all processes in the communicator.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 520 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getMaxAllGlobalIndex ( ) const
inlinevirtual

The maximum global index over all processes in the communicator.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 523 of file Xpetra_TpetraMap_def.hpp.

LocalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getLocalElement ( GlobalOrdinal  globalIndex) const
inlinevirtual

The local index corresponding to the given global index.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 526 of file Xpetra_TpetraMap_def.hpp.

GlobalOrdinal Xpetra::TpetraMap< int, long long, EpetraNode >::getGlobalElement ( LocalOrdinal  localIndex) const
inlinevirtual

The global index corresponding to the given local index.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 529 of file Xpetra_TpetraMap_def.hpp.

LookupStatus Xpetra::TpetraMap< int, long long, EpetraNode >::getRemoteIndexList ( const Teuchos::ArrayView< const GlobalOrdinal > &  GIDList,
const Teuchos::ArrayView< int > &  nodeIDList,
const Teuchos::ArrayView< LocalOrdinal > &  LIDList 
) const
inlinevirtual

Return the process IDs and corresponding local IDs for the given global IDs.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 532 of file Xpetra_TpetraMap_def.hpp.

LookupStatus Xpetra::TpetraMap< int, long long, EpetraNode >::getRemoteIndexList ( const Teuchos::ArrayView< const GlobalOrdinal > &  GIDList,
const Teuchos::ArrayView< int > &  nodeIDList 
) const
inlinevirtual

Return the process IDs for the given global IDs.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 535 of file Xpetra_TpetraMap_def.hpp.

Teuchos::ArrayView<const GlobalOrdinal> Xpetra::TpetraMap< int, long long, EpetraNode >::getLocalElementList ( ) const
inlinevirtual

Return a view of the global indices owned by this node.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 538 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isNodeLocalElement ( LocalOrdinal  localIndex) const
inlinevirtual

True if the local index is valid for this Map on this node, else false.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 546 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isNodeGlobalElement ( GlobalOrdinal  globalIndex) const
inlinevirtual

True if the global index is found in this Map on this node, else false.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 549 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isContiguous ( ) const
inlinevirtual

True if this Map is distributed contiguously, else false.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 552 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isDistributed ( ) const
inlinevirtual

Whether this Map is globally distributed or locally replicated.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 555 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isCompatible ( const Map< LocalOrdinal, GlobalOrdinal, Node > &  map) const
inlinevirtual

True if and only if map is compatible with this Map.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 558 of file Xpetra_TpetraMap_def.hpp.

bool Xpetra::TpetraMap< int, long long, EpetraNode >::isSameAs ( const Map< LocalOrdinal, GlobalOrdinal, Node > &  map) const
inlinevirtual

True if and only if map is identical to this Map.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 561 of file Xpetra_TpetraMap_def.hpp.

Teuchos::RCP<const Teuchos::Comm<int> > Xpetra::TpetraMap< int, long long, EpetraNode >::getComm ( ) const
inlinevirtual

Get this Map's Comm object.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 569 of file Xpetra_TpetraMap_def.hpp.

std::string Xpetra::TpetraMap< int, long long, EpetraNode >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 577 of file Xpetra_TpetraMap_def.hpp.

void Xpetra::TpetraMap< int, long long, EpetraNode >::describe ( Teuchos::FancyOStream &  out,
const Teuchos::EVerbosityLevel  verbLevel = Teuchos::Describable::verbLevel_default 
) const
inlinevirtual

Print this object with the given verbosity level to the given FancyOStream.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 580 of file Xpetra_TpetraMap_def.hpp.

RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::TpetraMap< int, long long, EpetraNode >::removeEmptyProcesses ( ) const
inlinevirtual

Return a new Map with processes with zero elements removed.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 582 of file Xpetra_TpetraMap_def.hpp.

RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::TpetraMap< int, long long, EpetraNode >::replaceCommWithSubset ( const Teuchos::RCP< const Teuchos::Comm< int > > &  newComm) const
inlinevirtual

Replace this Map's communicator with a subset communicator.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 583 of file Xpetra_TpetraMap_def.hpp.

UnderlyingLib Xpetra::TpetraMap< int, long long, EpetraNode >::lib ( ) const
inlinevirtual

Get the library used by this object (Tpetra or Epetra?)

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 596 of file Xpetra_TpetraMap_def.hpp.

RCP<const Tpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::TpetraMap< int, long long, EpetraNode >::getTpetra_Map ( ) const
inline

Get the underlying Tpetra map.

Definition at line 599 of file Xpetra_TpetraMap_def.hpp.

local_map_type Xpetra::TpetraMap< int, long long, EpetraNode >::getLocalMap ( ) const
inlinevirtual

Get the local Map for Kokkos kernels.

Implements Xpetra::Map< int, long long, EpetraNode >.

Definition at line 604 of file Xpetra_TpetraMap_def.hpp.


The documentation for this class was generated from the following file: