Go to the documentation of this file.
47 #ifndef PACKAGES_XPETRA_SUP_BLOCKEDMAP_XPETRA_BLOCKEDMAP_DECL_HPP_
48 #define PACKAGES_XPETRA_SUP_BLOCKEDMAP_XPETRA_BLOCKEDMAP_DECL_HPP_
53 #include "Xpetra_Map.hpp"
61 template<
class LocalOrdinal,
74 #undef XPETRA_BLOCKEDMAP_SHORT
219 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
222 #endif // TPETRA_ENABLE_DEPRECATED_CODE
307 getMap(
size_t i,
bool bThyraMode =
false)
const;
324 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
325 #ifdef HAVE_XPETRA_TPETRA
329 local_map_type getLocalMap()
const {
return fullmap_->getLocalMap(); }
331 #else // HAVE_XPETRA_TPETRA
333 #warning "Xpetra Kokkos interface for CrsMatrix is enabled (HAVE_XPETRA_KOKKOS_REFACTOR) but Tpetra is disabled. The Kokkos interface needs Tpetra to be enabled, too."
335 #endif // #else !HAVE_XPETRA_TPETRA
336 #endif // HAVE_XPETRA_KOKKOS_REFACTOR
400 #define XPETRA_BLOCKEDMAP_SHORT
bool CheckConsistency() const
virtual LocalOrdinal getMinLocalIndex() const
The minimum local index.
LocalOrdinal local_ordinal_type
virtual size_t getNodeNumElements() const
The number of elements belonging to the calling process.
BlockedMap< LocalOrdinal, GlobalOrdinal, Node > & operator=(const BlockedMap &rhs)
Assignment operator: Does a deep copy.
size_t global_size_t
Global size_t object.
GlobalOrdinal global_ordinal_type
virtual GlobalOrdinal getMinAllGlobalIndex() const
The minimum global index over all processes in the communicator.
virtual bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
Whether the given global index is valid for this Map on this process.
virtual LocalOrdinal getLocalElement(GlobalOrdinal globalIndex) const
The local index corresponding to the given global index.
const RCP< Xpetra::Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter(size_t i) const
get the importer between full map and partial map
virtual Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this process.
virtual GlobalOrdinal getIndexBase() const
The index base for this Map.
virtual RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > replaceCommWithSubset(const Teuchos::RCP< const Teuchos::Comm< int >> &) const
Replace this Map's communicator with a subset communicator.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with the given verbosity level to a FancyOStream.
virtual bool getThyraMode() const
Local number of rows on the calling process.
virtual bool isCompatible(const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is compatible with this Map.
std::vector< RCP< const Map > > thyraMaps_
virtual bool isNodeLocalElement(LocalOrdinal localIndex) const
Whether the given local index is valid for this Map on this process.
virtual RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
virtual global_size_t getGlobalNumElements() const
The number of elements in this Map.
size_t getNumMaps() const
number of partial maps
virtual GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
virtual std::string description() const
A simple one-line description of this object.
std::vector< RCP< Import > > importers_
const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getFullMap() const
the full map
virtual bool isSameAs(const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map) const
True if and only if map is identical to this Map.
virtual bool isContiguous() const
True if this Map is distributed contiguously, else false.
virtual LookupStatus getRemoteIndexList(const Teuchos::ArrayView< const GlobalOrdinal > &, const Teuchos::ArrayView< int > &, const Teuchos::ArrayView< LocalOrdinal > &) const
Return the process ranks and corresponding local indices for the given global indices.
size_t getMapIndexForGID(GlobalOrdinal gid) const
returns map index in map extractor which contains GID
virtual ~BlockedMap()
Destructor.
RCP< const Map > fullmap_
std::vector< RCP< const Map > > maps_
virtual Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
Get this Map's Comm object.
virtual GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
virtual LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
virtual GlobalOrdinal getGlobalElement(LocalOrdinal localIndex) const
The global index corresponding to the given local index.
static Teuchos::RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > concatenateMaps(const std::vector< Teuchos::RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >>> &subMaps)
Helper function to concatenate several maps.
static const EVerbosityLevel verbLevel_default
virtual UnderlyingLib lib() const
Get the library used by this object (Tpetra or Epetra?)
virtual void assign(const BlockedMap &input)
Implementation of the assignment operator (operator=); does a deep copy.
virtual bool isDistributed() const
Whether this Map is globally distributed or locally replicated.
virtual GlobalOrdinal getMaxAllGlobalIndex() const
The maximum global index over all processes in the communicator.
virtual RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > removeEmptyProcesses() const
Return a new Map with processes with zero elements removed.