46 #ifndef XPETRA_EPETRABLOCKMAP_HPP
47 #define XPETRA_EPETRABLOCKMAP_HPP
51 #ifndef HAVE_XPETRA_EPETRA
52 #error This file should be included only if HAVE_XPETRA_EPETRA is defined.
58 #include "Epetra_BlockMap.h"
95 size_t numLocalBlocks,
137 #ifdef XPETRA_NOT_IMPLEMENTED
153 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA
183 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA
188 int getFirstGlobalPointInLocalBlock(
int localBlockID)
const {
return; }
Kokkos::DefaultNode::DefaultNodeType Node
int getFirstLocalPointInLocalBlock(int localBlockID) const
Return the first local point-index corresponding to localBlockID.
bool isBlockSizeConstant() const
static Teuchos::RCP< DefaultNodeType > getDefaultNode()
RCP< const Epetra_BlockMap > getEpetra_BlockMap() const
global_size_t getGlobalNumBlocks() const
virtual ~EpetraBlockMap()
EpetraBlockMap destructor.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Block-entry counterpart to Xpetra::Map.
int getLocalBlockID(int globalBlockID) const
Return the localBlockID corresponding to the given globalBlockID.
const RCP< const Epetra_BlockMap > map_
EpetraBlockMap(const Teuchos::RCP< const Epetra_BlockMap > &map)
EpetraBlockMap constructor specifying numGlobalBlocks and lists of local blocks first-global-point-in...
size_t global_size_t
Global size_t object.
size_t getNodeNumBlocks() const
Return number of blocks on the local processor.
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.
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.
Block-entry counterpart to Xpetra::Map.
int getGlobalBlockID(int localBlockID) const
Return ArrayRCP of first-local-point in local blocks.
int getLocalBlockSize(int localBlockID) const
Return the block-size for localBlockID.