#include <Xpetra_StridedEpetraMap.hpp>
Public Member Functions | |
| GlobalOrdinal | getGlobalElement (LocalOrdinal localIndex) const |
| Return the global index for a given local index. Note that this returns -1 if not found on this processor. (This is different than Epetra's behavior!) More... | |
Public Member Functions inherited from Xpetra::EpetraMap | |
| EpetraMap (global_size_t numGlobalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| Constructor with Tpetra-defined contiguous uniform distribution. More... | |
| EpetraMap (global_size_t numGlobalElements, size_t numLocalElements, GlobalOrdinal indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, const Teuchos::RCP< Node > &node=Kokkos::DefaultNode::getDefaultNode()) | |
| Constructor with a user-defined contiguous distribution. More... | |
| EpetraMap (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::DefaultNode::getDefaultNode()) | |
| Constructor with user-defined arbitrary (possibly noncontiguous) distribution. 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 |
| virtual | ~EpetraMap () |
| Destructor. More... | |
| EpetraMap (const Teuchos::RCP< const Epetra_BlockMap > &map) | |
| EpetraMap constructor to wrap a Epetra_Map object. More... | |
| const Epetra_BlockMap & | getEpetra_BlockMap () const |
| Get the underlying Epetra map. More... | |
| const Epetra_Map & | getEpetra_Map () const |
Public Member Functions inherited from Xpetra::Map< int, int > | |
| virtual | ~Map () |
| Destructor. More... | |
Public Member Functions inherited from Teuchos::Describable | |
| 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) |
Public Member Functions inherited from Xpetra::StridedMap< int, int > | |
| StridedMap (global_size_t numGlobalElements, intindexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, intstridedBlockId, intoffset=0) | |
| StridedMap (global_size_t numGlobalElements, size_t numLocalElements, intindexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, intstridedBlockId, intoffset=0) | |
| StridedMap (std::vector< size_t > &stridingInfo, intindexBase, intstridedBlockId, intoffset=0) | |
| StridedMap (global_size_t numGlobalElements, const Teuchos::ArrayView< const int > &elementList, intindexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, intstridedBlockId=-1) | |
| virtual | ~StridedMap () |
| Destructor. More... | |
| std::vector< size_t > | getStridingData () const |
| void | setStridingData (std::vector< size_t > stridingInfo) |
| size_t | getFixedBlockSize () const |
| int | getStridedBlockId () const |
| bool | isStrided () |
| returns true, if this is a strided map (i.e. more than 1 strided blocks) More... | |
| bool | isBlocked () |
| int | getOffset () const |
| void | setOffset (intoffset) |
| size_t | GID2StridingBlockId (intgid) const |
Public Member Functions inherited from Xpetra::Map< int, int, Node > | |
| virtual | ~Map () |
| Destructor. More... | |
| virtual bool | isCompatible (const Map< int, int, Node > &map) const =0 |
| True if and only if map is compatible with this Map. More... | |
| virtual bool | isSameAs (const Map< int, int, Node > &map) const =0 |
| True if and only if map is identical to this Map. More... | |
| virtual RCP< const Map > | removeEmptyProcesses () const =0 |
| virtual RCP< const Map > | replaceCommWithSubset (const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const =0 |
Private Types | |
| typedef int | LocalOrdinal |
| typedef int | GlobalOrdinal |
| typedef Kokkos::DefaultNode::DefaultNodeType | Node |
Private Member Functions | |
| bool | CheckConsistency () |
Constructor/Destructor Methods | |
| StridedEpetraMap (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. 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. More... | |
| StridedEpetraMap (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. The elements are distributed among the nodes so that the subsets of global elements are non-overlapping and contiguous. More... | |
| StridedEpetraMap (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... | |
| ~StridedEpetraMap () | |
| 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... | |
| 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... | |
| 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... | |
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... | |
| 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 | |
| StridedEpetraMap (const Teuchos::RCP< const Epetra_BlockMap > &map, std::vector< size_t > &stridingInfo, LocalOrdinal stridedBlockId=-1, GlobalOrdinal offset=0) | |
| EpetraMap constructor to wrap a Epetra_Map object. More... | |
| UnderlyingLib | lib () const |
| Get the library used by this object (Epetra or Epetra?) More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default |
Protected Attributes inherited from Xpetra::EpetraMap | |
| RCP< const Epetra_BlockMap > | map_ |
Protected Attributes inherited from Xpetra::StridedMap< int, int > | |
| std::vector< size_t > | stridingInfo_ |
| vector with size of strided blocks (dofs) More... | |
| int | stridedBlockId_ |
| member variable denoting which dofs are stored in map More... | |
| int | offset_ |
| offset for gids in map (default = 0) More... | |
| int | indexBase_ |
| index base for the strided map (default = 0) More... | |
Definition at line 65 of file Xpetra_StridedEpetraMap.hpp.
|
private |
Definition at line 69 of file Xpetra_StridedEpetraMap.hpp.
|
private |
Definition at line 70 of file Xpetra_StridedEpetraMap.hpp.
|
private |
Definition at line 71 of file Xpetra_StridedEpetraMap.hpp.
| Xpetra::StridedEpetraMap::StridedEpetraMap | ( | 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. 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.
Definition at line 70 of file Xpetra_StridedEpetraMap.cpp.
| Xpetra::StridedEpetraMap::StridedEpetraMap | ( | 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. The elements are distributed among the nodes so that the subsets of global elements are non-overlapping and contiguous.
Definition at line 125 of file Xpetra_StridedEpetraMap.cpp.
| Xpetra::StridedEpetraMap::StridedEpetraMap | ( | 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.
Definition at line 187 of file Xpetra_StridedEpetraMap.cpp.
|
inline |
Map destructor.
Definition at line 88 of file Xpetra_StridedEpetraMap.hpp.
|
inline |
EpetraMap constructor to wrap a Epetra_Map object.
Definition at line 189 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns the number of elements in this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 96 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns the number of elements belonging to the calling node.
Reimplemented from Xpetra::EpetraMap.
Definition at line 99 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns the index base for this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 102 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns minimum local index.
Reimplemented from Xpetra::EpetraMap.
Definition at line 105 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns maximum local index.
Reimplemented from Xpetra::EpetraMap.
Definition at line 108 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns minimum global index owned by this node.
Reimplemented from Xpetra::EpetraMap.
Definition at line 111 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns maximum global index owned by this node.
Reimplemented from Xpetra::EpetraMap.
Definition at line 114 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Return the minimum global index over all nodes.
Reimplemented from Xpetra::EpetraMap.
Definition at line 117 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Return the maximum global index over all nodes.
Reimplemented from Xpetra::EpetraMap.
Definition at line 120 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Return the local index for a given global index.
Reimplemented from Xpetra::EpetraMap.
Definition at line 123 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns the node IDs and corresponding local indices for a given list of global indices.
Reimplemented from Xpetra::EpetraMap.
Definition at line 126 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns the node IDs for a given list of global indices.
Reimplemented from Xpetra::EpetraMap.
Definition at line 129 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Return a list of the global indices owned by this node.
Reimplemented from Xpetra::EpetraMap.
Definition at line 132 of file Xpetra_StridedEpetraMap.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::EpetraMap.
Definition at line 135 of file Xpetra_StridedEpetraMap.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::EpetraMap.
Definition at line 138 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns true if this Map is distributed contiguously; returns false otherwise.
Reimplemented from Xpetra::EpetraMap.
Definition at line 141 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns true if this Map is distributed across more than one node; returns false otherwise.
Reimplemented from Xpetra::EpetraMap.
Definition at line 144 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Get the Comm object for this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 152 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Get the Node object for this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 155 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns true if map is compatible with this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 164 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Returns true if map is identical to this Map.
Reimplemented from Xpetra::EpetraMap.
Definition at line 167 of file Xpetra_StridedEpetraMap.hpp.
|
virtual |
Return a simple one-line description of this object.
Reimplemented from Xpetra::EpetraMap.
Definition at line 206 of file Xpetra_StridedEpetraMap.cpp.
|
virtual |
Print the object with some verbosity level to a FancyOStream object.
Reimplemented from Xpetra::EpetraMap.
Definition at line 217 of file Xpetra_StridedEpetraMap.cpp.
|
inlinevirtual |
Return the global index for a given local index. Note that this returns -1 if not found on this processor. (This is different than Epetra's behavior!)
Reimplemented from Xpetra::EpetraMap.
Definition at line 183 of file Xpetra_StridedEpetraMap.hpp.
|
inlinevirtual |
Get the library used by this object (Epetra or Epetra?)
Reimplemented from Xpetra::EpetraMap.
Definition at line 197 of file Xpetra_StridedEpetraMap.hpp.
|
inlineprivatevirtual |
Implements Xpetra::StridedMap< int, int >.
Definition at line 208 of file Xpetra_StridedEpetraMap.hpp.
1.8.5