46#ifndef XPETRA_TPETRAEXPORT_DEF_HPP
47#define XPETRA_TPETRAEXPORT_DEF_HPP
51#include "Tpetra_Distributor.hpp"
55template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
64template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
74template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
82template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
89template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
95 return export_->getNumSameIDs();
99template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
105 return export_->getNumPermuteIDs();
109template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
115 return export_->getPermuteFromLIDs();
119template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
125 return export_->getPermuteToLIDs();
129template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
135 return export_->getNumRemoteIDs();
139template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
145 return export_->getRemoteLIDs();
149template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
155 return export_->getNumExportIDs();
159template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
165 return export_->getExportLIDs();
169template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
175 return export_->getExportPIDs();
179template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
185 return toXpetra(export_->getSourceMap());
189template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
195 return toXpetra(export_->getTargetMap());
198template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
203 export_->getDistributor().setParameterList(params);
204 auto revDistor = export_->getDistributor().getReverse(
false);
205 if (!revDistor.is_null())
206 revDistor->setParameterList(params);
210template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
213print(std::ostream& os)
const
220template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
223 const RCP<
const Tpetra::Export<LocalOrdinal, GlobalOrdinal, Node>>& exp)
229template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
239#ifdef HAVE_XPETRA_EPETRA
241#if((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) \
242 || (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
247 :
public Export<int, int, EpetraNode>
388#if((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))) \
389 || (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))))
394 :
public Export<int, long long, EpetraNode>
#define XPETRA_MONITOR(funcName)
#define XPETRA_TPETRA_ETI_EXCEPTION(cl, obj, go, node)
void print(std::ostream &os) const
Print the Export's data to the given output stream.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
TpetraExport(const RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > &exp)
TpetraExport constructor to wrap a Tpetra::Export object.
~TpetraExport()
Destructor.
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.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
TpetraExport(const Export< LocalOrdinal, GlobalOrdinal, Node > &rhs)
Copy constructor.
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Export() const
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set parameters on the underlying object.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
TpetraExport(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target, const Teuchos::RCP< Teuchos::ParameterList > &plist)
Constructor (with list of parameters).
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The target Map used to construct this Export.
size_t getNumSameIDs() const
Number of initial identical IDs.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The source Map used to construct this Export.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_Export() const
TpetraExport(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target, const Teuchos::RCP< Teuchos::ParameterList > &plist)
Constructor (with list of parameters).
size_t getNumSameIDs() const
Number of initial identical IDs.
~TpetraExport()
Destructor.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
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.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
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.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getTargetMap() const
The target Map used to construct this Export.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The source Map used to construct this Export.
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.
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set parameters on the underlying object.
TpetraExport(const RCP< const Tpetra::Export< LocalOrdinal, GlobalOrdinal, Node > > &exp)
TpetraExport constructor to wrap a Tpetra::Export object.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
TpetraExport(const Export< LocalOrdinal, GlobalOrdinal, Node > &rhs)
Copy constructor.
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.
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.
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.
~TpetraExport()
Destructor.
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)