46 #ifndef XPETRA_EPETRAEXPORT_HPP
47 #define XPETRA_EPETRAEXPORT_HPP
55 #include "Epetra_Export.h"
57 #if defined(XPETRA_ENABLE_DEPRECATED_CODE)
59 #warning "The header file Trilinos/packages/xpetra/src/Export/Xpetra_EpetraExport.hpp is deprecated."
62 #error "The header file Trilinos/packages/xpetra/src/Export/Xpetra_EpetraExport.hpp is deprecated."
70 template <
class GlobalOrdinal,
class Node>
71 XPETRA_DEPRECATED
const Epetra_Export &
toEpetra(
const Export<int, GlobalOrdinal, Node> &);
72 template <
class GlobalOrdinal,
class Node>
73 XPETRA_DEPRECATED RCP<const Export<int, GlobalOrdinal, Node> >
toXpetra(
const Epetra_Export *exp);
75 template <
class EpetraGlobalOrdinal,
class Node>
77 :
public Export<int, EpetraGlobalOrdinal, Node> {
88 EpetraExportT(
const Teuchos::RCP<const map_type> &source,
const Teuchos::RCP<const map_type> &target)
110 return export_->NumSameIDs();
116 return export_->NumPermuteIDs();
158 return ArrayView<const int>(export_->ExportPIDs(), export_->NumExportIDs());
162 Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getSourceMap()
const {
164 return toXpetra<GlobalOrdinal, Node>(export_->SourceMap());
168 Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getTargetMap()
const {
170 return toXpetra<GlobalOrdinal, Node>(export_->TargetMap());
182 void print(std::ostream &os)
const {
208 #endif // XPETRA_EPETRAEXPORT_HPP
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
void setDistributorParameters(const Teuchos::RCP< Teuchos::ParameterList > params) const
Set parameters on the underlying object.
RCP< const Epetra_Export > getEpetra_Export() const
Get the underlying Epetra export.
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 Export.
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.
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getSourceMap() const
The source Map used to construct this Export.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
EpetraExportT(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.
RCP< const Epetra_Export > export_
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
Exception throws when you call an unimplemented method of Xpetra.
EpetraGlobalOrdinal GlobalOrdinal
~EpetraExportT()
Destructor.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
#define XPETRA_MONITOR(funcName)
EpetraExportT(const RCP< const Epetra_Export > &exp)
EpetraExportT constructor to wrap a Epetra_Export object.
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)