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" 86 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
87 const Teuchos::RCP<Kokkos::DefaultNode::DefaultNodeType> &node =
Kokkos::DefaultNode::getDefaultNode()) :
map_(rcp(new Epetra_BlockMap(numGlobalBlocks, blockSize, indexBase, *Teuchos2Epetra_Comm(comm)))) { }
95 size_t numLocalBlocks,
98 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
99 const Teuchos::RCP<Kokkos::DefaultNode::DefaultNodeType> &node =
Kokkos::DefaultNode::getDefaultNode()) :
map_(rcp(new Epetra_BlockMap(numGlobalBlocks, numLocalBlocks, blockSize, indexBase, *Teuchos2Epetra_Comm(comm)))) { }
137 #ifdef XPETRA_NOT_IMPLEMENTED 138 const Teuchos::RCP<const Map<int,int> >& getPointMap()
const {
return map_->getPointMap(); }
153 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA 158 Teuchos::ArrayRCP<const int> getNodeFirstPointInBlocks_Device()
const {
return map_->getNodeFirstPointInBlocks_Device(); }
183 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA 188 int getFirstGlobalPointInLocalBlock(
int localBlockID)
const {
return; }
196 const RCP< const Epetra_BlockMap >
map_;
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.
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.