46 #ifndef XPETRA_TPETRAEXPORT_DECL_HPP
47 #define XPETRA_TPETRAEXPORT_DECL_HPP
56 #include "Xpetra_TpetraMap.hpp"
57 #include "Tpetra_Export.hpp"
65 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
66 const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>&
toTpetra(
const Export<LocalOrdinal, GlobalOrdinal, Node>&);
69 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
70 RCP<const Export<LocalOrdinal, GlobalOrdinal, Node>>
71 toXpetra(
const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp);
75 template<
class LocalOrdinal,
79 :
public Export<LocalOrdinal, GlobalOrdinal, Node>
168 void print(std::ostream& os)
const;
178 TpetraExport(
const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp);
201 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
202 const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>&
212 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
213 RCP<const Export<LocalOrdinal, GlobalOrdinal, Node>>
214 toXpetra(
const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp)
219 return Teuchos::null;
226 #endif // XPETRA_TPETRAEXPORT_DECL_HPP
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Export() const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
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.
size_t getNumSameIDs() const
Number of initial identical IDs.
~TpetraExport()
Destructor.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The source Map used to construct this Export.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The target Map used to construct this Export.
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > export_
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set distributor parameters.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
TpetraExport(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Construct a Export object from the source and target Map.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
void print(std::ostream &os) const
Print the Export's data to the given output stream.