10 #ifndef TPETRA_EXPORT_DECL_HPP
11 #define TPETRA_EXPORT_DECL_HPP
13 #include "Tpetra_Details_Transfer.hpp"
16 #include "Teuchos_ArrayView.hpp"
17 #include "Teuchos_RCP.hpp"
19 #ifndef DOXYGEN_SHOULD_SKIP_THIS
21 template<
class T>
class Array;
24 #endif // DOXYGEN_SHOULD_SKIP_THIS
82 template<
class LocalOrdinal,
89 friend class Import<LocalOrdinal,GlobalOrdinal,Node>;
106 Export (
const Teuchos::RCP<const map_type>& source,
107 const Teuchos::RCP<const map_type>& target);
119 Export (
const Teuchos::RCP<const map_type>& source,
120 const Teuchos::RCP<const map_type>& target,
121 const Teuchos::RCP<Teuchos::FancyOStream>& out);
135 Export (
const Teuchos::RCP<const map_type>& source,
136 const Teuchos::RCP<const map_type>& target,
137 const Teuchos::RCP<Teuchos::ParameterList>& plist);
154 Export (
const Teuchos::RCP<const map_type>& source,
155 const Teuchos::RCP<const map_type>& target,
156 const Teuchos::RCP<Teuchos::FancyOStream>& out,
157 const Teuchos::RCP<Teuchos::ParameterList>& plist);
207 describe (Teuchos::FancyOStream& out,
208 const Teuchos::EVerbosityLevel verbLevel =
209 Teuchos::Describable::verbLevel_default)
const;
226 virtual void print (std::ostream& os)
const;
231 void setupSamePermuteExport(Teuchos::Array<GlobalOrdinal> & exportGIDs);
235 void setupRemote(Teuchos::Array<GlobalOrdinal> & exportGIDs);
251 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
252 Teuchos::RCP<const Export<LocalOrdinal, GlobalOrdinal, Node> >
257 return Teuchos::null;
259 #ifdef HAVE_TPETRA_DEBUG
260 TEUCHOS_TEST_FOR_EXCEPTION
261 (src == Teuchos::null || tgt == Teuchos::null, std::runtime_error,
262 "Tpetra::createExport: Neither source nor target map may be null.");
263 #endif // HAVE_TPETRA_DEBUG
265 return Teuchos::rcp (
new export_type (src, tgt));
270 #endif // TPETRA_EXPORT_DECL_HPP
Communication plan for data redistribution from a uniquely-owned to a (possibly) multiply-owned distr...
Common base class of Import and Export.
virtual void print(std::ostream &os) const
Print the Export's data to the given output stream.
Export< LocalOrdinal, GlobalOrdinal, Node > & operator=(const Export< LocalOrdinal, GlobalOrdinal, Node > &rhs)=default
Assignment operator.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Describe this object in a human-readable way to the given output stream.
virtual ~Export()=default
Destructor.
Export(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Construct a Export object from the source and target Map.
Forward declaration of Tpetra::Export.
Forward declaration of Tpetra::Import.
Communication plan for data redistribution from a (possibly) multiply-owned to a uniquely-owned distr...
Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > createExport(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &src, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &tgt)
Nonmember "constructor" for Export objects.
A parallel distribution of indices over processes.