46#ifndef XPETRA_TPETRAIMPORT_DECL_HPP
47#define XPETRA_TPETRAIMPORT_DECL_HPP
57#include "Tpetra_Import.hpp"
61 template <
class LocalOrdinal,
65 :
public Import<LocalOrdinal, GlobalOrdinal, Node>
139 void print(std::ostream &os)
const;
147 TpetraImport(
const RCP<
const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > > &
import);
161 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
168 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
171 if (importObj != Teuchos::null) {
173 return tpetraImport->getTpetra_Import();
175 return Teuchos::null;
178 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
180 if (!
import.is_null())
183 return Teuchos::null;
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set parameters on distributor.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The Target Map used to construct this Import object.
RCP< const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Import() const
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
size_t getNumSameIDs() const
Number of initial identical IDs.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > createRemoteOnlyImport(const Teuchos::RCP< const map_type > &remoteTarget) const
Special "constructor".
~TpetraImport()
Destructor.
RCP< const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > > import_
void print(std::ostream &os) const
Print the Import's data to the given output stream.
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
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.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)