49 #ifndef XPETRA_STRIDEDEPETRAMAP_HPP
50 #define XPETRA_STRIDEDEPETRAMAP_HPP
190 :
EpetraMap(map),
StridedMap<int, int>(stridingInfo, map->IndexBase(), stridedBlockId, offset) {
219 size_t nStridedOffset = 0;
225 const GlobalOrdinal goStridedOffset = Teuchos::as<GlobalOrdinal>(nStridedOffset);
257 #endif // XPETRA_STRIDEDEPETRAMAP_HPP
LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
Return the local index for a given global index.
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...
LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
int getStridedBlockId() const
bool isContiguous() const
True if this Map is distributed contiguously, else false.
LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
The local index corresponding to the given global index.
GlobalOrdinal getIndexBase() const
Returns the index base for this Map.
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...
bool isDistributed() const
Returns true if this Map is distributed across more than one node; returns false otherwise.
LocalOrdinal getMinLocalIndex() const
Returns minimum local index.
LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const
Return the process IDs and corresponding local IDs for the given global IDs.
GlobalOrdinal getMaxAllGlobalIndex() const
The maximum global index over all processes in the communicator.
GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
Return the global index for a given local index. Note that this returns -1 if not found on this proce...
const Teuchos::RCP< Node > getNode() const
Get this Map's Node object.
GlobalOrdinal getMaxGlobalIndex() const
Returns maximum global index owned by this node.
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.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
bool isContiguous() const
Returns true if this Map is distributed contiguously; returns false otherwise.
int indexBase_
index base for the strided map (default = 0)
static Teuchos::RCP< DefaultNodeType > getDefaultNode()
Exception throws to report errors in the internal logical of the program.
Kokkos::DefaultNode::DefaultNodeType Node
~StridedEpetraMap()
Map destructor.
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this node.
RCP< const Epetra_BlockMap > map_
int stridedBlockId_
member variable denoting which dofs are stored in map
GlobalOrdinal getMaxAllGlobalIndex() const
Return the maximum global index over all nodes.
size_t getNodeNumElements() const
Returns the number of elements belonging to the calling node.
size_t getNodeNumElements() const
The number of elements belonging to the calling node.
const Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get the Comm object for this Map.
bool isSameAs(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
Returns true if map is identical to this Map.
GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
std::vector< size_t > stridingInfo_
vector with size of strided blocks (dofs)
bool isNodeLocalElement(LocalOrdinal localIndex) const
True if the local index is valid for this Map on this node, else false.
UnderlyingLib lib() const
Get the library used by this object (Epetra or Epetra?)
global_size_t getGlobalNumElements() const
Returns the number of elements in this Map.
std::string description() const
Return a simple one-line description of this object.
GlobalOrdinal getMinGlobalIndex() const
Returns minimum global index owned by this node.
size_t getFixedBlockSize() const
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.
int offset_
offset for gids in map (default = 0)
bool isCompatible(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
Returns true if map is compatible with this Map.
size_t global_size_t
Global size_t object.
static const EVerbosityLevel verbLevel_default
bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
True if the global index is found in this Map on this node, else false.
GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
Return the global index for a given local index. Note that this returns -1 if not found on this proce...
const Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get this Map's Comm object.
bool isDistributed() const
Whether this Map is globally distributed or locally replicated.
const Teuchos::RCP< Node > getNode() const
Get the Node object for this Map.
bool isCompatible(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is compatible with this Map.
global_size_t getGlobalNumElements() const
The number of elements in this Map.
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.
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.
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 amo...
LocalOrdinal getMinLocalIndex() const
The minimum local index.
GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
GlobalOrdinal getMinAllGlobalIndex() const
Return the minimum global index over all nodes.
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a list of the global indices owned by this node.
bool isSameAs(const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is identical to this Map.
GlobalOrdinal getMinAllGlobalIndex() const
The minimum global index over all processes in the communicator.
GlobalOrdinal getIndexBase() const
The index base for this Map.
Class that stores a strided map.
LocalOrdinal getMaxLocalIndex() const
Returns maximum local index.