#include <Xpetra_TpetraBlockMap.hpp>
Public Types | |
| typedef TpetraMap < LocalOrdinal, GlobalOrdinal, Node > | TpetraMapClass |
Public Member Functions | |
| RCP< const Tpetra::BlockMap < LocalOrdinal, GlobalOrdinal, Node > > | getTpetra_BlockMap () const |
Public Member Functions inherited from Xpetra::BlockMap< LocalOrdinal, GlobalOrdinal, Node > | |
| virtual | ~BlockMap () |
| BlockMap destructor. More... | |
Public Member Functions inherited from Teuchos::Describable | |
| virtual std::string | description () const |
| virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| virtual | ~Describable () |
| LabeledObject () | |
| virtual | ~LabeledObject () |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| virtual std::string | getObjectLabel () const |
| DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
| std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Private Attributes | |
| RCP< const Tpetra::BlockMap < LocalOrdinal, GlobalOrdinal, Node > > | map_ |
Constructor/Destructor Methods | |
| TpetraBlockMap (global_size_t numGlobalBlocks, LocalOrdinal blockSize, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| TpetraBlockMap constructor specifying numGlobalBlocks and constant blockSize. More... | |
| TpetraBlockMap (global_size_t numGlobalBlocks, size_t numLocalBlocks, LocalOrdinal blockSize, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| TpetraBlockMap constructor specifying num global and local blocks, and constant blockSize. More... | |
| TpetraBlockMap (global_size_t numGlobalBlocks, const Teuchos::ArrayView< const GlobalOrdinal > &myGlobalBlockIDs, const Teuchos::ArrayView< const GlobalOrdinal > &myFirstGlobalPointInBlocks, const Teuchos::ArrayView< const LocalOrdinal > &myBlockSizes, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| TpetraBlockMap constructor specifying numGlobalBlocks and lists of local blocks first-global-point-in-blocks, and blockSizes. More... | |
| TpetraBlockMap (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &pointMap, const Teuchos::ArrayView< const GlobalOrdinal > &myGlobalBlockIDs, const Teuchos::ArrayView< const LocalOrdinal > &myBlockSizes, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| TpetraBlockMap 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. More... | |
| TpetraBlockMap (const Teuchos::RCP< const Tpetra::BlockMap< LocalOrdinal, GlobalOrdinal, Node > > &map) | |
| virtual | ~TpetraBlockMap () |
| TpetraBlockMap destructor. More... | |
Attribute Accessor Methods | |
| global_size_t | getGlobalNumBlocks () const |
| size_t | getNodeNumBlocks () const |
| Return number of blocks on the local processor. More... | |
| Teuchos::ArrayView< const GlobalOrdinal > | getNodeBlockIDs () const |
| bool | isBlockSizeConstant () const |
| Teuchos::ArrayRCP< const LocalOrdinal > | getNodeFirstPointInBlocks () const |
| Return ArrayRCP of first-local-point in local blocks. More... | |
| Teuchos::ArrayRCP< const LocalOrdinal > | getNodeFirstPointInBlocks_Device () const |
| Return device-resident ArrayRCP of first-local-point in local blocks. More... | |
| GlobalOrdinal | getGlobalBlockID (LocalOrdinal localBlockID) const |
| Return the globalBlockID corresponding to the given localBlockID. More... | |
| LocalOrdinal | getLocalBlockID (GlobalOrdinal globalBlockID) const |
| Return the localBlockID corresponding to the given globalBlockID. More... | |
| LocalOrdinal | getLocalBlockSize (LocalOrdinal localBlockID) const |
| Return the block-size for localBlockID. More... | |
| LocalOrdinal | getFirstLocalPointInLocalBlock (LocalOrdinal localBlockID) const |
| Return the first local point-index corresponding to localBlockID. More... | |
| GlobalOrdinal | getFirstGlobalPointInLocalBlock (LocalOrdinal localBlockID) const |
| Return the first global point-index corresponding to localBlockID. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default |
Definition at line 66 of file Xpetra_TpetraBlockMap.hpp.
| typedef TpetraMap<LocalOrdinal, GlobalOrdinal, Node> Xpetra::TpetraBlockMap< LocalOrdinal, GlobalOrdinal, Node >::TpetraMapClass |
Definition at line 72 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
TpetraBlockMap constructor specifying numGlobalBlocks and constant blockSize.
Definition at line 79 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
TpetraBlockMap constructor specifying num global and local blocks, and constant blockSize.
Definition at line 87 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
TpetraBlockMap constructor specifying numGlobalBlocks and lists of local blocks first-global-point-in-blocks, and blockSizes.
Definition at line 96 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
TpetraBlockMap 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 110 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Definition at line 119 of file Xpetra_TpetraBlockMap.hpp.
|
inlinevirtual |
TpetraBlockMap destructor.
Definition at line 122 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Definition at line 129 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return number of blocks on the local processor.
Definition at line 132 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Definition at line 134 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Definition at line 136 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return ArrayRCP of first-local-point in local blocks.
Definition at line 139 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return device-resident ArrayRCP of first-local-point in local blocks.
This version of this method is primarily used internally by VbrMatrix for passing data to the matrix-vector-product kernel.
Definition at line 145 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return the globalBlockID corresponding to the given localBlockID.
If localBlockID is not present on this processor, returns Teuchos::OrdinalTraits<LocalOrdinal>::invalid().
Definition at line 150 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return the localBlockID corresponding to the given globalBlockID.
If globalBlockID is not present on this processor, returns Teuchos::OrdinalTraits<LocalOrdinal>::invalid().
Definition at line 155 of file Xpetra_TpetraBlockMap.hpp.
|
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 161 of file Xpetra_TpetraBlockMap.hpp.
|
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 167 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Return the first global 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 173 of file Xpetra_TpetraBlockMap.hpp.
|
inline |
Definition at line 177 of file Xpetra_TpetraBlockMap.hpp.
|
private |
Definition at line 180 of file Xpetra_TpetraBlockMap.hpp.
1.8.5