Public Member Functions | Private Types | Private Attributes | List of all members
Xpetra::EpetraBlockMap Class Reference

Block-entry counterpart to Xpetra::Map. More...

#include <Xpetra_EpetraBlockMap.hpp>

Inheritance diagram for Xpetra::EpetraBlockMap:
Xpetra::BlockMap< int, int >

Public Member Functions

RCP< const Epetra_BlockMap > getEpetra_BlockMap () const
 
- Public Member Functions inherited from Xpetra::BlockMap< int, int >
virtual ~BlockMap ()
 BlockMap destructor. More...
 

Private Types

typedef int LocalOrdinal
 
typedef int GlobalOrdinal
 
typedef Kokkos::DefaultNode::DefaultNodeType Node
 

Private Attributes

const RCP< const Epetra_BlockMap > map_
 

Constructor/Destructor Methods

 EpetraBlockMap (global_size_t numGlobalBlocks, int blockSize, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Kokkos::DefaultNode::DefaultNodeType > &node=Kokkos::DefaultNode::getDefaultNode())
 EpetraBlockMap constructor specifying numGlobalBlocks and constant blockSize. More...
 
 EpetraBlockMap (global_size_t numGlobalBlocks, size_t numLocalBlocks, int blockSize, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Kokkos::DefaultNode::DefaultNodeType > &node=Kokkos::DefaultNode::getDefaultNode())
 EpetraBlockMap constructor specifying num global and local blocks, and constant blockSize. More...
 
 EpetraBlockMap (const Teuchos::RCP< const Epetra_BlockMap > &map)
 EpetraBlockMap constructor specifying numGlobalBlocks and lists of local blocks first-global-point-in-blocks, and blockSizes. More...
 
virtual ~EpetraBlockMap ()
 EpetraBlockMap destructor. More...
 

Attribute Accessor Methods

global_size_t getGlobalNumBlocks () const
 
size_t getNodeNumBlocks () const
 Return number of blocks on the local processor. More...
 
bool isBlockSizeConstant () const
 
int getGlobalBlockID (int localBlockID) const
 Return ArrayRCP of first-local-point in local blocks. More...
 
int getLocalBlockID (int globalBlockID) const
 Return the localBlockID corresponding to the given globalBlockID. More...
 
int getLocalBlockSize (int localBlockID) const
 Return the block-size for localBlockID. More...
 
int getFirstLocalPointInLocalBlock (int localBlockID) const
 Return the first local point-index corresponding to localBlockID. More...
 

Detailed Description

Block-entry counterpart to Xpetra::Map.

BlockMap doesn't inherit Xpetra::Map

Definition at line 70 of file Xpetra_EpetraBlockMap.hpp.

Member Typedef Documentation

Definition at line 72 of file Xpetra_EpetraBlockMap.hpp.

Definition at line 73 of file Xpetra_EpetraBlockMap.hpp.

Definition at line 74 of file Xpetra_EpetraBlockMap.hpp.

Constructor & Destructor Documentation

Xpetra::EpetraBlockMap::EpetraBlockMap ( global_size_t  numGlobalBlocks,
int  blockSize,
int  indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > &  comm,
const Teuchos::RCP< Kokkos::DefaultNode::DefaultNodeType > &  node = Kokkos::DefaultNode::getDefaultNode() 
)
inline

EpetraBlockMap constructor specifying numGlobalBlocks and constant blockSize.

Definition at line 83 of file Xpetra_EpetraBlockMap.hpp.

Xpetra::EpetraBlockMap::EpetraBlockMap ( global_size_t  numGlobalBlocks,
size_t  numLocalBlocks,
int  blockSize,
int  indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > &  comm,
const Teuchos::RCP< Kokkos::DefaultNode::DefaultNodeType > &  node = Kokkos::DefaultNode::getDefaultNode() 
)
inline

EpetraBlockMap constructor specifying num global and local blocks, and constant blockSize.

Definition at line 94 of file Xpetra_EpetraBlockMap.hpp.

Xpetra::EpetraBlockMap::EpetraBlockMap ( const Teuchos::RCP< const Epetra_BlockMap > &  map)
inline

EpetraBlockMap constructor specifying numGlobalBlocks and lists of local blocks first-global-point-in-blocks, and blockSizes.

EpetraBlockMap constructor which takes a "regular" Map. The arrays myGlobalBlockIDs and myBlockSizes must be the same length, and sum(myBlockSizes) must equal pointMap->getNodeNumElements(). If these arrays are different lengths or sum(myBlockSizes) is incorrect, then std::runtime_error is thrown.

Definition at line 128 of file Xpetra_EpetraBlockMap.hpp.

virtual Xpetra::EpetraBlockMap::~EpetraBlockMap ( )
inlinevirtual

EpetraBlockMap destructor.

Definition at line 131 of file Xpetra_EpetraBlockMap.hpp.

Member Function Documentation

global_size_t Xpetra::EpetraBlockMap::getGlobalNumBlocks ( ) const
inline

Definition at line 141 of file Xpetra_EpetraBlockMap.hpp.

size_t Xpetra::EpetraBlockMap::getNodeNumBlocks ( ) const
inline

Return number of blocks on the local processor.

Definition at line 144 of file Xpetra_EpetraBlockMap.hpp.

bool Xpetra::EpetraBlockMap::isBlockSizeConstant ( ) const
inline

Definition at line 148 of file Xpetra_EpetraBlockMap.hpp.

int Xpetra::EpetraBlockMap::getGlobalBlockID ( int  localBlockID) const
inline

Return ArrayRCP of first-local-point in local blocks.

Return the globalBlockID corresponding to the given localBlockID

If localBlockID is not present on this processor, returns Teuchos::OrdinalTraits<int>::invalid().

Definition at line 164 of file Xpetra_EpetraBlockMap.hpp.

int Xpetra::EpetraBlockMap::getLocalBlockID ( int  globalBlockID) const
inline

Return the localBlockID corresponding to the given globalBlockID.

If globalBlockID is not present on this processor, returns Teuchos::OrdinalTraits<int>::invalid().

Definition at line 169 of file Xpetra_EpetraBlockMap.hpp.

int Xpetra::EpetraBlockMap::getLocalBlockSize ( int  localBlockID) const
inline

Return the block-size for localBlockID.

If localBlockID is out of range (less than 0 or greater/equal num-local-blocks), then std::runtime_error is thrown.

Definition at line 175 of file Xpetra_EpetraBlockMap.hpp.

int Xpetra::EpetraBlockMap::getFirstLocalPointInLocalBlock ( int  localBlockID) const
inline

Return the first local point-index corresponding to localBlockID.

If localBlockID is out of range (less than 0 or greater/equal num-local-blocks), then std::runtime_error is thrown.

Definition at line 181 of file Xpetra_EpetraBlockMap.hpp.

RCP< const Epetra_BlockMap > Xpetra::EpetraBlockMap::getEpetra_BlockMap ( ) const
inline

Definition at line 193 of file Xpetra_EpetraBlockMap.hpp.

Member Data Documentation

const RCP< const Epetra_BlockMap > Xpetra::EpetraBlockMap::map_
private

Definition at line 196 of file Xpetra_EpetraBlockMap.hpp.


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