#include <Xpetra_StridedTpetraMap_fwd.hpp>
Private Member Functions | |
| bool | CheckConsistency () |
Constructor/Destructor Methods | |
| StridedTpetraMap (global_size_t numGlobalElements, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId=-1, GlobalOrdinal offset=0, LocalGlobal lg=GloballyDistributed, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| Map constructor with Tpetra-defined contiguous uniform distribution. More... | |
| StridedTpetraMap (global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId=-1, GlobalOrdinal offset=0, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| Map constructor with a user-defined contiguous distribution. More... | |
| StridedTpetraMap (global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId=-1, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| Map constructor with user-defined non-contiguous (arbitrary) distribution. More... | |
| ~StridedTpetraMap () | |
| Map destructor. More... | |
Map Attribute Methods | |
| global_size_t | getGlobalNumElements () const |
| Returns the number of elements in this Map. More... | |
| size_t | getNodeNumElements () const |
| Returns the number of elements belonging to the calling node. More... | |
| GlobalOrdinal | getIndexBase () const |
| Returns the index base for this Map. More... | |
| LocalOrdinal | getMinLocalIndex () const |
| Returns minimum local index. More... | |
| LocalOrdinal | getMaxLocalIndex () const |
| Returns maximum local index. More... | |
| GlobalOrdinal | getMinGlobalIndex () const |
| Returns minimum global index owned by this node. More... | |
| GlobalOrdinal | getMaxGlobalIndex () const |
| Returns maximum global index owned by this node. More... | |
| GlobalOrdinal | getMinAllGlobalIndex () const |
| Return the minimum global index over all nodes. More... | |
| GlobalOrdinal | getMaxAllGlobalIndex () const |
| Return the maximum global index over all nodes. More... | |
| LocalOrdinal | getLocalElement (GlobalOrdinal globalIndex) const |
| Return the local index for a given global index. More... | |
| GlobalOrdinal | getGlobalElement (LocalOrdinal localIndex) const |
| Return the global index for a given local index. More... | |
| LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const |
| Returns the node IDs and corresponding local indices for a given list of global indices. More... | |
| LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const |
| Returns the node IDs for a given list of global indices. More... | |
| Teuchos::ArrayView< const GlobalOrdinal > | getNodeElementList () const |
| Return a list of the global indices owned by this node. More... | |
| bool | isNodeLocalElement (LocalOrdinal localIndex) const |
| Returns true if the local index is valid for this Map on this node; returns false if it isn't. More... | |
| bool | isNodeGlobalElement (GlobalOrdinal globalIndex) const |
| Returns true if the global index is found in this Map on this node; returns false if it isn't. More... | |
| bool | isContiguous () const |
| Returns true if this Map is distributed contiguously; returns false otherwise. More... | |
| bool | isDistributed () const |
| Returns true if this Map is distributed across more than one node; returns false otherwise. More... | |
Boolean Tests | |
| bool | isCompatible (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const |
| Returns true if map is compatible with this Map. More... | |
| bool | isSameAs (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const |
| Returns true if map is identical to this Map. More... | |
| const Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const |
| Get the Comm object for this Map. More... | |
| const Teuchos::RCP< Node > | getNode () const |
| Get the Node object for this Map. More... | |
| std::string | description () const |
| Return a simple one-line description of this object. More... | |
| void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
| Print the object with some verbosity level to a FancyOStream object. More... | |
Xpetra specific | |
| StridedTpetraMap (const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map, std::vector< size_t > &stridingInfo, LocalOrdinal stridedBlockId=-1, GlobalOrdinal offset=0) | |
| TpetraMap constructor to wrap a Tpetra::Map object. More... | |
| UnderlyingLib | lib () const |
| Get the library used by this object (Tpetra or Epetra?) More... | |
Additional Inherited Members | |
Public Member Functions inherited from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > | |
| TpetraMap (global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed, const Teuchos::RCP< Node > &node=Kokkos::Details::getNode< Node >()) | |
| Constructor with Tpetra-defined contiguous uniform distribution. More... | |
| TpetraMap (global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::Details::getNode< Node >()) | |
| Constructor with a user-defined contiguous distribution. More... | |
| TpetraMap (global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::Details::getNode< Node >()) | |
| Constructor with user-defined arbitrary (possibly noncontiguous) distribution. More... | |
| ~TpetraMap () | |
| Destructor. More... | |
| RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | removeEmptyProcesses () const |
| RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | replaceCommWithSubset (const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const |
| TpetraMap (const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map) | |
| TpetraMap constructor to wrap a Tpetra::Map object. More... | |
| const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > & | getTpetra_Map () const |
| Get the underlying Tpetra map. More... | |
Public Member Functions inherited from Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > | |
| virtual | ~Map () |
| Destructor. More... | |
Public Member Functions inherited from Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node > | |
| StridedMap (global_size_t numGlobalElements, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId, GlobalOrdinal offset=0) | |
| StridedMap (global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId, GlobalOrdinal offset=0) | |
| StridedMap (std::vector< size_t > &stridingInfo, GlobalOrdinal indexBase, LocalOrdinal stridedBlockId, GlobalOrdinal offset=0) | |
| StridedMap (global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalOrdinal stridedBlockId=-1) | |
| virtual | ~StridedMap () |
| Destructor. More... | |
| std::vector< size_t > | getStridingData () const |
| void | setStridingData (std::vector< size_t > stridingInfo) |
| size_t | getFixedBlockSize () const |
| LocalOrdinal | getStridedBlockId () const |
| bool | isStrided () |
| returns true, if this is a strided map (i.e. more than 1 strided blocks) More... | |
| bool | isBlocked () |
| GlobalOrdinal | getOffset () const |
| void | setOffset (GlobalOrdinal offset) |
| size_t | GID2StridingBlockId (GlobalOrdinal gid) const |
Protected Attributes inherited from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node > | |
| RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > | map_ |
Protected Attributes inherited from Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node > | |
| std::vector< size_t > | stridingInfo_ |
| vector with size of strided blocks (dofs) More... | |
| LocalOrdinal | stridedBlockId_ |
| member variable denoting which dofs are stored in map More... | |
| GlobalOrdinal | offset_ |
| offset for gids in map (default = 0) More... | |
| GlobalOrdinal | indexBase_ |
| index base for the strided map (default = 0) More... | |
Definition at line 51 of file Xpetra_StridedTpetraMap_fwd.hpp.
|
inline |
Map constructor with Tpetra-defined contiguous uniform distribution.
Map constructor with Tpetra-defined contiguous uniform distribution. The elements are distributed among nodes so that the subsets of global elements are non-overlapping and contiguous and as evenly distributed across the nodes as possible.
If numGlobalElements == Teuchos::OrdinalTraits<global_size_t>::invalid(), the number of global elements will be computed via a global communication. Otherwise, it must be equal to the sum of the local elements across all nodes. This will only be verified if Trilinos' Teuchos package was built with debug support (CMake Boolean option TEUCHOS_ENABLE_DEBUG=ON). If verification fails, a std::invalid_argument exception will be thrown.
Definition at line 91 of file Xpetra_StridedTpetraMap.hpp.
|
inline |
Map constructor with a user-defined contiguous distribution.
Map constructor with a user-defined contiguous distribution.
Map constructor with a user-defined contiguous distribution. The elements are distributed among nodes so that the subsets of global elements are non-overlapping and contiguous and as evenly distributed across the nodes as possible.
If numGlobalElements == Teuchos::OrdinalTraits<global_size_t>::invalid(), the number of global elements will be computed via a global communication. Otherwise, it must be equal to the sum of the local elements across all nodes. This will only be verified if Trilinos' Teuchos package was built with debug support (CMake Boolean option TEUCHOS_ENABLE_DEBUG=ON). If verification fails, a std::invalid_argument exception will be thrown.
Definition at line 164 of file Xpetra_StridedTpetraMap.hpp.
|
inline |
Map constructor with user-defined non-contiguous (arbitrary) distribution.
createse a strided map using the GIDs in elementList and the striding information provided by user.
Definition at line 228 of file Xpetra_StridedTpetraMap.hpp.
|
inline |
Map destructor.
Definition at line 243 of file Xpetra_StridedTpetraMap.hpp.
|
inline |
TpetraMap constructor to wrap a Tpetra::Map object.
Definition at line 343 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns the number of elements in this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 251 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns the number of elements belonging to the calling node.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 254 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns the index base for this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 257 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns minimum local index.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 260 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns maximum local index.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 263 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns minimum global index owned by this node.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 266 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns maximum global index owned by this node.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 269 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return the minimum global index over all nodes.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 272 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return the maximum global index over all nodes.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 275 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return the local index for a given global index.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 278 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return the global index for a given local index.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 281 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns the node IDs and corresponding local indices for a given list of global indices.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 284 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns the node IDs for a given list of global indices.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 287 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return a list of the global indices owned by this node.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 290 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if the local index is valid for this Map on this node; returns false if it isn't.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 293 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if the global index is found in this Map on this node; returns false if it isn't.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 296 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if this Map is distributed contiguously; returns false otherwise.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 299 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if this Map is distributed across more than one node; returns false otherwise.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 302 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if map is compatible with this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 310 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Returns true if map is identical to this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 313 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Get the Comm object for this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 321 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Get the Node object for this Map.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 324 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Return a simple one-line description of this object.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 332 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Print the object with some verbosity level to a FancyOStream object.
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 335 of file Xpetra_StridedTpetraMap.hpp.
|
inlinevirtual |
Get the library used by this object (Tpetra or Epetra?)
Reimplemented from Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 352 of file Xpetra_StridedTpetraMap.hpp.
|
inlineprivatevirtual |
Implements Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 360 of file Xpetra_StridedTpetraMap.hpp.
1.8.11