42 #ifndef TPETRA_IMPORT_DECL_HPP 43 #define TPETRA_IMPORT_DECL_HPP 45 #include <Tpetra_ConfigDefs.hpp> 46 #include <Kokkos_DefaultNode.hpp> 47 #include <Teuchos_Describable.hpp> 55 #ifndef DOXYGEN_SHOULD_SKIP_THIS 58 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
59 class ImportExportData;
61 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
64 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
66 #endif // DOXYGEN_SHOULD_SKIP_THIS 121 template <
class LocalOrdinal,
122 class GlobalOrdinal = LocalOrdinal,
123 class Node = Kokkos::DefaultNode::DefaultNodeType>
125 friend class Export<LocalOrdinal,GlobalOrdinal,Node>;
326 virtual void print (std::ostream& os)
const;
428 const size_t numSameIDs,
457 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
463 return Teuchos::null;
465 #ifdef HAVE_TPETRA_DEBUG 467 src == null || tgt == null, std::runtime_error,
468 "Tpetra::createImport(): neither source nor target map may be null:" 469 << std::endl <<
"source: " << src << std::endl <<
"target: " << tgt
471 #endif // HAVE_TPETRA_DEBUG 486 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
493 return Teuchos::null;
495 #ifdef HAVE_TPETRA_DEBUG 497 src == null || tgt == null, std::runtime_error,
498 "Tpetra::createImport(): neither source nor target map may be null:" 499 << std::endl <<
"source: " << src << std::endl <<
"target: " << tgt
501 #endif // HAVE_TPETRA_DEBUG 503 return Teuchos::rcp (
new import_type (src, tgt, plist));
507 #endif // TPETRA_IMPORT_DECL_HPP Communication plan for data redistribution from a uniquely-owned to a (possibly) multiply-owned distr...
Namespace Tpetra contains the class and methods constituting the Tpetra library.
ArrayView< const int > getExportPIDs() const
List of processes to which entries will be sent.
ArrayView< const LocalOrdinal > getRemoteLIDs() const
List of entries in the target Map to receive from other processes.
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getTargetMap() const
The Target Map used to construct this Import object.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
size_t getNumExportIDs() const
Number of entries that must be sent by the calling process to other processes.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
The specialization of Map used by this class.
Import(const Teuchos::RCP< const map_type > &source, const Teuchos::RCP< const map_type > &target)
Construct an Import from the source and target Maps.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ArrayView< const LocalOrdinal > getPermuteFromLIDs() const
List of local IDs in the source Map that are permuted.
Communication plan for data redistribution from a (possibly) multiply-owned to a uniquely-owned distr...
Import< LocalOrdinal, GlobalOrdinal, Node > & operator=(const Import< LocalOrdinal, GlobalOrdinal, Node > &Source)
Assignment operator.
Sets up and executes a communication plan for a Tpetra DistObject.
ArrayView< const LocalOrdinal > getPermuteToLIDs() const
List of local IDs in the target Map that are permuted.
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Set parameters.
ArrayView< const LocalOrdinal > getExportLIDs() const
List of entries in the source Map that will be sent to other processes.
Describes a parallel distribution of objects over processes.
size_t getNumPermuteIDs() const
Number of IDs to permute but not to communicate.
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getSourceMap() const
The Source Map used to construct this Import object.
size_t getNumSameIDs() const
Number of initial identical IDs.
Distributor & getDistributor() const
The Distributor that this Import object uses to move data.
virtual void print(std::ostream &os) const
Print the Import's data to the given output stream.
size_t getNumRemoteIDs() const
Number of entries not on the calling process.
Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > createImport(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &src, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &tgt)
Nonmember constructor for Import.
Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > setUnion(const Import< LocalOrdinal, GlobalOrdinal, Node > &rhs) const
Return the union of this Import and rhs.