|
Tpetra Matrix/Vector Services
Version of the Day
|
Computes the local ID and process ID corresponding to given global IDs. More...
#include <Tpetra_DirectoryImpl_decl.hpp>

Public Member Functions | |
| Directory (const Teuchos::RCP< const map_type > &map) | |
| Constructor. | |
| LookupStatus | getEntries (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const |
Protected Member Functions | |
| virtual LookupStatus | getEntriesImpl (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const =0 |
| Actually do the work of getEntries(), with no input validation. | |
| Teuchos::RCP< const map_type > | getMap () const |
| Get the Map with which this object was created. | |
Computes the local ID and process ID corresponding to given global IDs.
Definition at line 58 of file Tpetra_DirectoryImpl_decl.hpp.
| Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >::Directory | ( | const Teuchos::RCP< const map_type > & | map | ) |
Constructor.
| LookupStatus Tpetra::Details::Directory< LO, GO, NT >::getEntries | ( | 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.
| 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 61 of file Tpetra_DirectoryImpl_def.hpp.
| virtual LookupStatus Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >::getEntriesImpl | ( | const Teuchos::ArrayView< const GlobalOrdinal > & | globalIDs, |
| const Teuchos::ArrayView< int > & | nodeIDs, | ||
| const Teuchos::ArrayView< LocalOrdinal > & | localIDs, | ||
| const bool | computeLIDs | ||
| ) | const [protected, pure virtual] |
Actually do the work of getEntries(), with no input validation.
Implemented in Tpetra::Details::DistributedNoncontiguousDirectory< LocalOrdinal, GlobalOrdinal, NodeType >, and Tpetra::Details::ReplicatedDirectory< LocalOrdinal, GlobalOrdinal, NodeType >.
| Teuchos::RCP<const map_type> Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >::getMap | ( | ) | const [inline, protected] |
Get the Map with which this object was created.
Definition at line 110 of file Tpetra_DirectoryImpl_decl.hpp.
1.7.6.1