46#ifndef XPETRA_TPETRAEXPORT_DECL_HPP
47#define XPETRA_TPETRAEXPORT_DECL_HPP
57#include "Tpetra_Export.hpp"
65template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
66const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>&
toTpetra(
const Export<LocalOrdinal, GlobalOrdinal, Node>&);
69template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
70RCP<const Export<LocalOrdinal, GlobalOrdinal, Node>>
71toXpetra(
const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp);
75template<
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);
201template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
202const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>&
211 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
214 if (exportObj != Teuchos::null) {
216 return tpetraExport->getTpetra_Export();
218 return Teuchos::null;
222template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
223RCP<const Export<LocalOrdinal, GlobalOrdinal, Node>>
224toXpetra(
const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp)
229 return Teuchos::null;
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set distributor parameters.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The source Map used to construct this Export.
size_t getNumSameIDs() const
Number of initial identical IDs.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
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 Export.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Export() const
void print(std::ostream &os) const
Print the Export's data to the given output stream.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > export_
~TpetraExport()
Destructor.
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)