46 #ifndef XPETRA_EPETRAMAP_HPP
47 #define XPETRA_EPETRAMAP_HPP
55 #include <Epetra_Map.h>
56 #include <Epetra_BlockMap.h>
66 const Epetra_Map &
toEpetra(
const Map<int,int> &);
67 const Epetra_Map &
toEpetra(
const RCP<
const Map<int, int> > &);
69 const RCP< const Map<int, int> >
toXpetra(
const Epetra_BlockMap &);
73 :
public virtual Map<int, int>
174 const Epetra_BlockMap * NewMap =
map_->RemoveEmptyProcesses();
175 if(!NewMap)
return Teuchos::null;
180 throw std::runtime_error(
"Xpetra::EpetraMap::replaceCommWithSubset has not yet been implemented.");
181 return Teuchos::null;
203 if (gid ==
map_->IndexBase()-1)
return (-1);
237 #endif // XPETRA_EPETRAMAP_HPP
std::string description() const
Return a simple one-line description of this object.
LocalOrdinal getMaxLocalIndex() const
The maximum local index on the calling process.
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.
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.
static Teuchos::RCP< DefaultNodeType > getDefaultNode()
Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const
Return a view of the global indices owned by this node.
RCP< const Epetra_BlockMap > map_
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, int > > &graph)
virtual ~EpetraMap()
Destructor.
size_t getNodeNumElements() const
The number of elements belonging to the calling node.
GlobalOrdinal getMinGlobalIndex() const
The minimum global index owned by the calling process.
bool isNodeLocalElement(LocalOrdinal localIndex) const
True if the local index is valid for this Map on this node, else false.
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > replaceCommWithSubset(const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print this object with the given verbosity level to the given FancyOStream.
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.
size_t global_size_t
Global size_t object.
static const EVerbosityLevel verbLevel_default
UnderlyingLib lib() const
Get the library used by this object (Epetra or Epetra?)
bool isNodeGlobalElement(GlobalOrdinal globalIndex) const
True if the global index is found in this Map on this node, else false.
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.
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.
Kokkos::DefaultNode::DefaultNodeType Node
LocalOrdinal getMinLocalIndex() const
The minimum local index.
#define XPETRA_MONITOR(funcName)
GlobalOrdinal getMaxGlobalIndex() const
The maximum global index owned by the calling process.
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.
EpetraMap(const Teuchos::RCP< const Epetra_BlockMap > &map)
EpetraMap constructor to wrap a Epetra_Map object.
RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node, LocalMatOps > > toXpetra(RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node, LocalMatOps > >)
Convert an Epetra_Comm.to a Teuchos_Comm.
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > removeEmptyProcesses() const
const Epetra_Map & getEpetra_Map() const
const Epetra_BlockMap & getEpetra_BlockMap() const
Get the underlying Epetra map.