46 #ifndef XPETRA_BLOCKMAP_HPP 47 #define XPETRA_BLOCKMAP_HPP 61 template <
class LocalOrdinal,
class GlobalOrdinal = LocalOrdinal,
class Node = Kokkos::DefaultNode::DefaultNodeType>
73 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA 78 virtual const Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >& getPointMap()
const =0;
83 virtual size_t getNodeNumBlocks()
const =0;
85 virtual Teuchos::ArrayView<const GlobalOrdinal> getNodeBlockIDs()
const =0;
87 virtual bool isBlockSizeConstant()
const =0;
90 virtual Teuchos::ArrayRCP<const LocalOrdinal> getNodeFirstPointInBlocks()
const =0;
92 #ifdef XPETRA_NOT_IMPLEMENTED_FOR_EPETRA 97 virtual Teuchos::ArrayRCP<const LocalOrdinal> getNodeFirstPointInBlocks_Device()
const =0;
103 virtual GlobalOrdinal getGlobalBlockID(LocalOrdinal localBlockID)
const =0;
108 virtual LocalOrdinal getLocalBlockID(GlobalOrdinal globalBlockID)
const =0;
114 virtual LocalOrdinal getLocalBlockSize(LocalOrdinal localBlockID)
const =0;
120 virtual LocalOrdinal getFirstLocalPointInLocalBlock(LocalOrdinal localBlockID)
const =0;
126 virtual GlobalOrdinal getFirstGlobalPointInLocalBlock(LocalOrdinal localBlockID)
const =0;
130 #endif // XPETRA_NOT_IMPLEMENTED_FOR_EPETRA 141 #define XPETRA_BLOCKMAP_SHORT
virtual ~BlockMap()
BlockMap destructor.
size_t global_size_t
Global size_t object.
Block-entry counterpart to Xpetra::Map.