|
| | 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...
|
| |
|
| virtual | ~Map () |
| | Destructor. More...
|
| |
| virtual global_size_t | getGlobalNumElements () const =0 |
| | The number of elements in this Map. More...
|
| |
| virtual size_t | getNodeNumElements () const =0 |
| | The number of elements belonging to the calling node. More...
|
| |
| virtual GlobalOrdinal | getIndexBase () const =0 |
| | The index base for this Map. More...
|
| |
| virtual LocalOrdinal | getMinLocalIndex () const =0 |
| | The minimum local index. More...
|
| |
| virtual LocalOrdinal | getMaxLocalIndex () const =0 |
| | The maximum local index on the calling process. More...
|
| |
| virtual GlobalOrdinal | getMinGlobalIndex () const =0 |
| | The minimum global index owned by the calling process. More...
|
| |
| virtual GlobalOrdinal | getMaxGlobalIndex () const =0 |
| | The maximum global index owned by the calling process. More...
|
| |
| virtual GlobalOrdinal | getMinAllGlobalIndex () const =0 |
| | The minimum global index over all processes in the communicator. More...
|
| |
| virtual GlobalOrdinal | getMaxAllGlobalIndex () const =0 |
| | The maximum global index over all processes in the communicator. More...
|
| |
| virtual LocalOrdinal | getLocalElement (GlobalOrdinal globalIndex) const =0 |
| | The local index corresponding to the given global index. More...
|
| |
| virtual GlobalOrdinal | getGlobalElement (LocalOrdinal localIndex) const =0 |
| | The global index corresponding to the given local index. More...
|
| |
| virtual LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const =0 |
| | Return the process IDs and corresponding local IDs for the given global IDs. More...
|
| |
| virtual LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const =0 |
| | Return the process IDs for the given global IDs. More...
|
| |
| virtual Teuchos::ArrayView< const GlobalOrdinal > | getNodeElementList () const =0 |
| | Return a view of the global indices owned by this node. More...
|
| |
| virtual bool | isNodeLocalElement (LocalOrdinal localIndex) const =0 |
| | True if the local index is valid for this Map on this node, else false. More...
|
| |
| virtual bool | isNodeGlobalElement (GlobalOrdinal globalIndex) const =0 |
| | True if the global index is found in this Map on this node, else false. More...
|
| |
| virtual bool | isContiguous () const =0 |
| | True if this Map is distributed contiguously, else false. More...
|
| |
| virtual bool | isDistributed () const =0 |
| | Whether this Map is globally distributed or locally replicated. More...
|
| |
| virtual bool | isCompatible (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const =0 |
| | True if and only if map is compatible with this Map. More...
|
| |
| virtual bool | isSameAs (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const =0 |
| | True if and only if map is identical to this Map. More...
|
| |
| virtual const Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const =0 |
| | Get this Map's Comm object. More...
|
| |
| virtual const Teuchos::RCP< Node > | getNode () const =0 |
| | Get this Map's Node object. More...
|
| |
| virtual std::string | description () const =0 |
| | Return a simple one-line description of this object. More...
|
| |
| virtual void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const =0 |
| | Print this object with the given verbosity level to the given FancyOStream. More...
|
| |
| virtual RCP< const Map > | removeEmptyProcesses () const =0 |
| |
| virtual RCP< const Map > | replaceCommWithSubset (const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const =0 |
| |
| virtual UnderlyingLib | lib () const =0 |
| | Get the library used by this object (Tpetra or Epetra?) More...
|
| |
template<class LocalOrdinal, class GlobalOrdinal = LocalOrdinal, class Node = Kokkos::DefaultNode::DefaultNodeType>
class Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >
Class that stores a strided map.
StridedMap extends the functionality of Xpetra::Map
It derives from Xpetra::Map and adds a std::vector, which contains the striding information. E.g. for a strided map with 3dofs per node (2 velocity dofs, 1 pressure dof) the striding information looks like: std::vector<size_t> stridingInformation; stridingInformation.push_back(2); // 2 velocity dofs stridingInformation.push_back(1); // 1 pressure dof
For this example the getFixedBlockSize() returns 3 (3 dofs per node). Providing a stridedBlockId parameter in the constructor the strided map only contains dofs of one strided block, e.g. with above stridingInformation the call
StridingMap M(33,0,stridiningInformation,comm,0); // striding block 0 (velocity dofs) returns a map with the gids 0, 1, 3, 4, 6, 7, ... (which contains only the velocity dofs)
and StridingMap M(33,0,stridiningInformation,comm,1); // striding block 1 (pressure dofs) creates a map with only the pressure dofs 2, 5, 8, ...
- Note
- : there's no support for global offset, yet.
Definition at line 51 of file Xpetra_StridedMap_fwd.hpp.