46 #ifndef XPETRA_EPETRAIMPORT_HPP 47 #define XPETRA_EPETRAIMPORT_HPP 57 #include "Epetra_Import.h" 65 template<
class GlobalOrdinal>
66 RCP< const Import<int, GlobalOrdinal > >
toXpetra(
const Epetra_Import *
import);
69 template<
class EpetraGlobalOrdinal>
71 :
public Import<int, EpetraGlobalOrdinal>
146 void print(std::ostream &os)
const;
167 #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES 171 #ifndef XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES 177 #endif // XPETRA_EPETRAIMPORT_HPP EpetraGlobalOrdinal GlobalOrdinal
EpetraImportT(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Construct an Import from the source and target Maps.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
~EpetraImportT()
Destructor.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
RCP< const CrsGraph< int, GlobalOrdinal > > toXpetra(const Epetra_CrsGraph &g)
ArrayView< const LocalOrdinal > getRemotePIDs() const
List of entries in the target Map to receive from other processes.
size_t getNumSameIDs() const
Number of initial identical IDs.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The Target Map used to construct this Import object.
EpetraImportT< long long > EpetraImport64
RCP< const Epetra_Import > getEpetra_Import() const
Get the underlying Epetra import.
Import< int, GlobalOrdinal >::node_type Node
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The Source Map used to construct this Import object.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
RCP< const Epetra_Import > import_
EpetraImportT(const RCP< const Epetra_Import > &import)
EpetraImportT constructor to wrap a Epetra_Import object.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
EpetraImportT< int > EpetraImport
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
#define XPETRA_MONITOR(funcName)
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
void print(std::ostream &os) const
Print the Import's data to the given output stream.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.