42 #ifndef TPETRA_EXPORT_DECL_HPP
43 #define TPETRA_EXPORT_DECL_HPP
45 #include "Tpetra_Details_Transfer.hpp"
48 #include "Teuchos_ArrayView.hpp"
49 #include "Teuchos_RCP.hpp"
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 template<
class T>
class Array;
56 #endif // DOXYGEN_SHOULD_SKIP_THIS
119 template<
class LocalOrdinal,
126 friend class Import<LocalOrdinal,GlobalOrdinal,Node>;
143 Export (
const Teuchos::RCP<const map_type>& source,
144 const Teuchos::RCP<const map_type>& target);
156 Export (
const Teuchos::RCP<const map_type>& source,
157 const Teuchos::RCP<const map_type>& target,
158 const Teuchos::RCP<Teuchos::FancyOStream>& out);
172 Export (
const Teuchos::RCP<const map_type>& source,
173 const Teuchos::RCP<const map_type>& target,
174 const Teuchos::RCP<Teuchos::ParameterList>& plist);
191 Export (
const Teuchos::RCP<const map_type>& source,
192 const Teuchos::RCP<const map_type>& target,
193 const Teuchos::RCP<Teuchos::FancyOStream>& out,
194 const Teuchos::RCP<Teuchos::ParameterList>& plist);
244 describe (Teuchos::FancyOStream& out,
245 const Teuchos::EVerbosityLevel verbLevel =
246 Teuchos::Describable::verbLevel_default)
const;
263 virtual void print (std::ostream& os)
const;
268 void setupSamePermuteExport(Teuchos::Array<GlobalOrdinal> & exportGIDs);
272 void setupRemote(Teuchos::Array<GlobalOrdinal> & exportGIDs);
288 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
289 Teuchos::RCP<const Export<LocalOrdinal, GlobalOrdinal, Node> >
294 return Teuchos::null;
296 #ifdef HAVE_TPETRA_DEBUG
297 TEUCHOS_TEST_FOR_EXCEPTION
298 (src == Teuchos::null || tgt == Teuchos::null, std::runtime_error,
299 "Tpetra::createExport: Neither source nor target map may be null.");
300 #endif // HAVE_TPETRA_DEBUG
302 return Teuchos::rcp (
new export_type (src, tgt));
307 #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.