Tpetra parallel linear algebra
Version of the Day
|
Common base class of Import and Export. More...
#include <Tpetra_Details_Transfer_decl.hpp>
Public Types | |
typedef ::Tpetra::Map< LO, GO, NT > | map_type |
The specialization of Map used by this class and subclasses. More... | |
Public Member Functions | |
virtual | ~Transfer () |
Destructor (declared virtual for memory safety of derived classes). More... | |
virtual size_t | getNumSameIDs () const =0 |
Number of initial identical IDs. More... | |
virtual size_t | getNumPermuteIDs () const =0 |
Number of IDs to permute but not to communicate. More... | |
virtual Teuchos::ArrayView < const LO > | getPermuteFromLIDs () const =0 |
List of local IDs in the source Map that are permuted. More... | |
virtual Teuchos::ArrayView < const LO > | getPermuteToLIDs () const =0 |
List of local IDs in the target Map that are permuted. More... | |
virtual size_t | getNumRemoteIDs () const =0 |
Number of entries not on the calling process. More... | |
virtual Teuchos::ArrayView < const LO > | getRemoteLIDs () const =0 |
List of entries in the target Map to receive from other processes. More... | |
virtual size_t | getNumExportIDs () const =0 |
Number of entries that must be sent by the calling process to other processes. More... | |
virtual Teuchos::ArrayView < const LO > | getExportLIDs () const =0 |
List of entries in the source Map that will be sent to other processes. More... | |
virtual Teuchos::ArrayView < const int > | getExportPIDs () const =0 |
List of processes to which entries will be sent. More... | |
virtual Teuchos::RCP< const map_type > | getSourceMap () const =0 |
The source Map used to construct this Export or Import. More... | |
virtual Teuchos::RCP< const map_type > | getTargetMap () const =0 |
The target Map used to construct this Export or Import. More... | |
virtual ::Tpetra::Distributor & | getDistributor () const =0 |
The Distributor that this Export or Import object uses to move data. More... | |
virtual bool | isLocallyComplete () const =0 |
Is this Export or Import locally complete? More... | |
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. More... | |
Protected Member Functions | |
void | describeImpl (Teuchos::FancyOStream &out, const std::string &className, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
Implementation of describe() for subclasses (Tpetra::Import and Tpetra::Export). More... | |
Common base class of Import and Export.
Definition at line 69 of file Tpetra_Details_Transfer_decl.hpp.
typedef ::Tpetra::Map<LO, GO, NT> Tpetra::Details::Classes::Transfer< LO, GO, NT >::map_type |
The specialization of Map used by this class and subclasses.
The initial two colons avoid confusion between Tpetra::Map and Tpetra::Detaills::Map.
Definition at line 78 of file Tpetra_Details_Transfer_decl.hpp.
|
inlinevirtual |
Destructor (declared virtual for memory safety of derived classes).
Definition at line 72 of file Tpetra_Details_Transfer_decl.hpp.
|
pure virtual |
Number of initial identical IDs.
The number of IDs that are identical between the source and target Maps, up to the first different ID.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Number of IDs to permute but not to communicate.
The number of IDs that are local to the calling process, but not part of the first getNumSameIDs() entries. The Import or Export will permute these entries locally (without distributed-memory communication).
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
List of local IDs in the source Map that are permuted.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
List of local IDs in the target Map that are permuted.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Number of entries not on the calling process.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
List of entries in the target Map to receive from other processes.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Number of entries that must be sent by the calling process to other processes.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
List of entries in the source Map that will be sent to other processes.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
List of processes to which entries will be sent.
The entry with local ID getExportLIDs()[i] will be sent to process getExportPiDs()[i].
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The source Map used to construct this Export or Import.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The target Map used to construct this Export or Import.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The Distributor that this Export or Import object uses to move data.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Is this Export or Import locally complete?
If this is an Export, then do all source Map indices on the calling process exist on at least one process (not necessarily this one) in the target Map?
If this is an Import, then do all target Map indices on the calling process exist on at least one process (not necessarily this one) in the source Map?
It's not necessarily an error for an Export or Import not to be locally complete on one or more processes. For example, this may happen in the common use case of "restriction" – that is, taking a subset of a large object. Nevertheless, you may find this predicate useful for figuring out whether you set up your Maps in the way that you expect.
Implemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
|
virtual |
Describe this object in a human-readable way to the given output stream.
You must call this method as a collective over all processes in the communicator of the source and target Map of this object.
out | [out] Output stream to which to write. Only Process 0 in this object's communicator may write to the output stream. |
verbLevel | [in] Verbosity level. This also controls whether this method does any communication. At verbosity levels higher (greater) than Teuchos::VERB_LOW, this method behaves as a collective over the object's communicator. |
Teuchos::FancyOStream wraps std::ostream. It adds features like tab levels. If you just want to wrap std::cout, try this:
Reimplemented in Tpetra::Classes::Import< LocalOrdinal, GlobalOrdinal, Node >, and Tpetra::Classes::Export< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 59 of file Tpetra_Details_Transfer_def.hpp.
|
protected |
Implementation of describe() for subclasses (Tpetra::Import and Tpetra::Export).
out | [out] Output stream to which to write. Only Process 0 in this object's communicator may write to the output stream. |
className | [in] Name of the subclass of Transfer calling this method. |
verbLevel | [in] Verbosity level. This also controls whether this method does any communication. At verbosity levels higher (greater) than Teuchos::VERB_LOW, this method behaves as a collective over the object's communicator. |
Definition at line 68 of file Tpetra_Details_Transfer_def.hpp.