42 #ifndef TPETRA_IMPORTEXPORTDATA_DECL_HPP 43 #define TPETRA_IMPORTEXPORTDATA_DECL_HPP 45 #include "Tpetra_Distributor.hpp" 49 #ifndef DOXYGEN_SHOULD_SKIP_THIS 51 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
class Import;
52 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
class Export;
55 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
class Map;
77 template<
class LocalOrdinal,
82 typedef LocalOrdinal local_ordinal_type;
83 typedef GlobalOrdinal global_ordinal_type;
84 typedef Node node_type;
92 const Teuchos::RCP<const map_type>& target);
100 const Teuchos::RCP<const map_type>& target,
101 const Teuchos::RCP<Teuchos::FancyOStream>& out);
109 const Teuchos::RCP<const map_type>& target,
110 const Teuchos::RCP<Teuchos::ParameterList>& plist);
119 const Teuchos::RCP<const map_type>& target,
120 const Teuchos::RCP<Teuchos::FancyOStream>& out,
121 const Teuchos::RCP<Teuchos::ParameterList>& plist);
130 Teuchos::RCP<ImportExportData<LocalOrdinal, GlobalOrdinal, Node> >
reverseClone();
133 const Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
source_;
136 const Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
target_;
139 Teuchos::RCP<Teuchos::FancyOStream>
out_;
236 #endif // TPETRA_IMPORTEXPORTDATA_DECL_HPP size_t numSameIDs_
Number of initial identical indices.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
bool isLocallyComplete_
Is this Export or Import locally complete?
~ImportExportData()
Destructor.
Teuchos::Array< LocalOrdinal > permuteToLIDs_
Index of target Map LIDs to which to permute.
ImportExportData(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Constructor.
Teuchos::Array< int > exportPIDs_
Ranks of the processes to which the source object sends data.
Teuchos::Array< LocalOrdinal > exportLIDs_
"Outgoing" local indices.
Implementation detail of Import and Export.
Sets up and executes a communication plan for a Tpetra DistObject.
Teuchos::Array< LocalOrdinal > permuteFromLIDs_
Index of source Map LIDs from which to permute.
Teuchos::RCP< Teuchos::FancyOStream > out_
Output stream for debug output.
Describes a parallel distribution of objects over processes.
const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > target_
Target Map of the Import or Export.
Distributor distributor_
Object that actually distributes (sends and receives) data.
Teuchos::Array< LocalOrdinal > remoteLIDs_
"Incoming" indices.
const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > source_
Source Map of the Import or Export.
Teuchos::RCP< ImportExportData< LocalOrdinal, GlobalOrdinal, Node > > reverseClone()
Copy the data, but reverse the direction of the transfer as well as reversing the Distributor...