46 #ifndef XPETRA_EPETRAIMPORT_HPP
47 #define XPETRA_EPETRAIMPORT_HPP
57 #include "Epetra_Import.h"
61 template<
class GlobalOrdinal,
class Node>
65 template<
class EpetraGlobalOrdinal,
class Node>
67 :
public Import<int, EpetraGlobalOrdinal, Node>
183 #endif // XPETRA_EPETRAIMPORT_HPP
EpetraImportT(const RCP< const Epetra_Import > &import)
EpetraImportT constructor to wrap a Epetra_Import object.
void print(std::ostream &os) const
Print the Import's data to the given output stream.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
RCP< const Epetra_Import > getEpetra_Import() const
Get the underlying Epetra import.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
EpetraGlobalOrdinal GlobalOrdinal
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The Target Map used to construct this Import object.
virtual void Print(std::ostream &os) const
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
size_t getNumSameIDs() const
Number of initial identical IDs.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
const Epetra_BlockMap & TargetMap() const
EpetraImportT(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Construct an Import from the source and target Maps.
const Epetra_BlockMap & SourceMap() const
RCP< const Epetra_Import > import_
Exception throws when you call an unimplemented method of Xpetra.
~EpetraImportT()
Destructor.
int NumPermuteIDs() const
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
#define XPETRA_MONITOR(funcName)
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The Source Map used to construct this Import object.
ArrayView< const LocalOrdinal > getRemotePIDs() const
List of entries in the target Map to receive from other processes.