#include <Xpetra_EpetraMap.hpp>
Public Types | |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
![]() | |
typedef int | local_ordinal_type |
typedef int | global_ordinal_type |
typedef EpetraNode | node_type |
Public Member Functions | |
GlobalOrdinal | getGlobalElement (LocalOrdinal localIndex) const |
Return the global index for a given local index. Note that this returns -1 if not found on this processor. (This is different than Epetra's behavior!) More... | |
![]() | |
virtual | ~Map () |
Destructor. More... | |
virtual RCP< const Xpetra::Map< int, int, EpetraNode > > | getMap () const |
Static Public Member Functions | |
static Teuchos::RCP< Node > | defaultArgNode () |
Protected Attributes | |
RCP< const Epetra_BlockMap > | map_ |
Private Types | |
typedef int | LocalOrdinal |
typedef int | GlobalOrdinal |
typedef EpetraNode | Node |
Constructors and destructor | |
EpetraMapT (global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed, const Teuchos::RCP< Node > &node=defaultArgNode()) | |
Constructor with Tpetra-defined contiguous uniform distribution. More... | |
EpetraMapT (global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=defaultArgNode()) | |
Constructor with a user-defined contiguous distribution. More... | |
EpetraMapT (global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=defaultArgNode()) | |
Constructor with user-defined arbitrary (possibly noncontiguous) distribution. More... | |
Attributes | |
global_size_t | getGlobalNumElements () const |
The number of elements in this Map. More... | |
size_t | getNodeNumElements () const |
The number of elements belonging to the calling process. 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... | |
LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const |
Return the process ranks and corresponding local indices for the given global indices. More... | |
LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const |
Return the process ranks for the given global indices. More... | |
Teuchos::ArrayView< const GlobalOrdinal > | getNodeElementList () const |
Return a view of the global indices owned by this process. More... | |
Boolean tests | |
bool | isNodeLocalElement (LocalOrdinal localIndex) const |
Whether the given local index is valid for this Map on this process. More... | |
bool | isNodeGlobalElement (GlobalOrdinal globalIndex) const |
Whether the given global index is valid for this Map on this process. 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... | |
Teuchos::RCP< Node > | getNode () const |
Get this Map's Node 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 Teuchos::FancyOStream. More... | |
RCP< const Map< int, GlobalOrdinal, Node > > | removeEmptyProcesses () const |
Return a new Map with processes with zero elements removed. More... | |
RCP< const Map< int, GlobalOrdinal, Node > > | replaceCommWithSubset (const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const |
Replace this Map's communicator with a subset communicator. More... | |
Xpetra specific | |
virtual | ~EpetraMapT () |
Destructor. More... | |
EpetraMapT (const Teuchos::RCP< const Epetra_BlockMap > &map) | |
EpetraMapT constructor to wrap a Epetra_Map object. More... | |
UnderlyingLib | lib () const |
Get the library used by this object (Epetra or Epetra?) More... | |
const Epetra_BlockMap & | getEpetra_BlockMap () const |
Get the underlying Epetra map. More... | |
const Epetra_Map & | getEpetra_Map () const |
Definition at line 267 of file Xpetra_EpetraMap.hpp.
|
private |
Definition at line 270 of file Xpetra_EpetraMap.hpp.
|
private |
Definition at line 271 of file Xpetra_EpetraMap.hpp.
|
private |
Definition at line 272 of file Xpetra_EpetraMap.hpp.
typedef LocalOrdinal Xpetra::EpetraMapT< int, EpetraNode >::local_ordinal_type |
Definition at line 275 of file Xpetra_EpetraMap.hpp.
typedef GlobalOrdinal Xpetra::EpetraMapT< int, EpetraNode >::global_ordinal_type |
Definition at line 276 of file Xpetra_EpetraMap.hpp.
typedef Node Xpetra::EpetraMapT< int, EpetraNode >::node_type |
Definition at line 277 of file Xpetra_EpetraMap.hpp.
|
inline |
Constructor with Tpetra-defined contiguous uniform distribution.
Definition at line 292 of file Xpetra_EpetraMap.hpp.
|
inline |
Constructor with a user-defined contiguous distribution.
Definition at line 347 of file Xpetra_EpetraMap.hpp.
|
inline |
Constructor with user-defined arbitrary (possibly noncontiguous) distribution.
Definition at line 446 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Destructor.
Definition at line 673 of file Xpetra_EpetraMap.hpp.
|
inline |
EpetraMapT constructor to wrap a Epetra_Map object.
Definition at line 676 of file Xpetra_EpetraMap.hpp.
|
inlinestatic |
Definition at line 279 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The number of elements in this Map.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 464 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The number of elements belonging to the calling process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 467 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The index base for this Map.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 470 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The minimum local index.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 473 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The maximum local index on the calling process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 476 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The minimum global index owned by the calling process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 479 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The maximum global index owned by the calling process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 482 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The minimum global index over all processes in the communicator.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 485 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The maximum global index over all processes in the communicator.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 488 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
The local index corresponding to the given global index.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 491 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return the process ranks and corresponding local indices for the given global indices.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 494 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return the process ranks for the given global indices.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 497 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return a view of the global indices owned by this process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 500 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Whether the given local index is valid for this Map on this process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 507 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Whether the given global index is valid for this Map on this process.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 510 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
True if this Map is distributed contiguously, else false.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 513 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Whether this Map is globally distributed or locally replicated.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 516 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
True if and only if map is compatible with this Map.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 519 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
True if and only if map is identical to this Map.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 522 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Get this Map's Comm object.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 530 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Get this Map's Node object.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 533 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return a simple one-line description of this object.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 544 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Print this object with the given verbosity level to the given Teuchos::FancyOStream.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 559 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return a new Map with processes with zero elements removed.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 641 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Replace this Map's communicator with a subset communicator.
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 653 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Return the global index for a given local index. Note that this returns -1 if not found on this processor. (This is different than Epetra's behavior!)
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 661 of file Xpetra_EpetraMap.hpp.
|
inlinevirtual |
Get the library used by this object (Epetra or Epetra?)
Implements Xpetra::Map< int, int, EpetraNode >.
Definition at line 682 of file Xpetra_EpetraMap.hpp.
|
inline |
Get the underlying Epetra map.
Definition at line 686 of file Xpetra_EpetraMap.hpp.
|
inline |
Definition at line 687 of file Xpetra_EpetraMap.hpp.
|
protected |
Definition at line 693 of file Xpetra_EpetraMap.hpp.