|
Tpetra Matrix/Vector Services
Version of the Day
|
Implementation of Directory for a contiguous, uniformly distributed Map. More...
#include <Tpetra_DirectoryImpl_decl.hpp>

Public Member Functions | |
| ContiguousUniformDirectory (const Teuchos::RCP< const map_type > &map) | |
| Constructor. More... | |
| LookupStatus | getEntries (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const |
Implementation of Teuchos::Describable. | |
| std::string | description () const |
| A one-line human-readable description of this object. More... | |
Protected Member Functions | |
| LookupStatus | getEntriesImpl (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const |
| Find process IDs and (optionally) local IDs for the given global IDs. More... | |
| Teuchos::RCP< const map_type > | getMap () const |
| Get the Map with which this object was created. More... | |
| void | setMap (const Teuchos::RCP< const map_type > &map) |
| Set the Map for this object, for post-contructor initialization. More... | |
Implementation of Directory for a contiguous, uniformly distributed Map.
The Map may have any number of processes starting with one. Since the entries are uniformly distributed over the processes, this implementation of Directory can compute which process owns a GID (and the GID's corresponding LID) in
space and time.
Definition at line 191 of file Tpetra_DirectoryImpl_decl.hpp.
| Tpetra::Details::ContiguousUniformDirectory< LocalOrdinal, GlobalOrdinal, NodeType >::ContiguousUniformDirectory | ( | const Teuchos::RCP< const map_type > & | map | ) |
Constructor.
| std::string Tpetra::Details::ContiguousUniformDirectory< LO, GO, NT >::description | ( | ) | const |
A one-line human-readable description of this object.
Definition at line 140 of file Tpetra_DirectoryImpl_def.hpp.
|
protectedvirtual |
Find process IDs and (optionally) local IDs for the given global IDs.
Implements Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >.
Definition at line 154 of file Tpetra_DirectoryImpl_def.hpp.
|
inherited |
Find process IDs and (optionally) local IDs for the given global IDs.
| globalIDs | [in] The global IDs for which to find process IDs (and optionally local IDs). |
| nodeIDs | [out] The process IDs corresponding to the given global IDs. If a global ID does not belong to any process, the corresponding entry of nodeIDs will be -1. |
| localIDs | [out] If computeLIDs is true, we fill this with the local IDs corresponding to the given global IDs. If a given global ID does not correspond to a local ID, the corresponding entry will be Teuchos::OrdinalTraits<LocalOrdinal>::invalid(). |
| computeLIDs | [in] Whether to fill in localIDs. |
Definition at line 74 of file Tpetra_DirectoryImpl_def.hpp.
|
inlineprotectedinherited |
Get the Map with which this object was created.
Definition at line 133 of file Tpetra_DirectoryImpl_decl.hpp.
|
inlineprotectedinherited |
Set the Map for this object, for post-contructor initialization.
Definition at line 136 of file Tpetra_DirectoryImpl_decl.hpp.
1.8.5