Tpetra parallel linear algebra Version of the Day
|
Internal functions and macros designed for use with Tpetra::Import and Tpetra::Export objects. More...
#include "Tpetra_ConfigDefs.hpp"
#include "Tpetra_Import.hpp"
#include "Tpetra_HashTable.hpp"
#include "Tpetra_Map.hpp"
#include "Tpetra_Util.hpp"
#include "Tpetra_Distributor.hpp"
#include <Teuchos_Array.hpp>
#include <utility>
Go to the source code of this file.
Namespaces | |
namespace | Tpetra |
Namespace Tpetra contains the class and methods constituting the Tpetra library. | |
Internal functions and macros designed for use with Tpetra::Import and Tpetra::Export objects.
Definition in file Tpetra_Import_Util.hpp.
void Tpetra::Import_Util::getPidGidPairs | ( | const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > & | Importer, |
Teuchos::Array< std::pair< int, GlobalOrdinal > > & | gpids, | ||
bool | use_minus_one_for_local ) |
For each GID in the TargetMap, find who owns the GID in the SourceMap.
This only uses the Distributor and does not communicate. It returns (as an output argument) an array of (PID,GID) pairs. If use_minus_one_for_local is true, any GIDs owned by this processor get -1 instead of their PID.
Definition at line 105 of file Tpetra_Import_Util.hpp.
void Tpetra::Import_Util::getPids | ( | const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > & | Importer, |
Teuchos::Array< int > & | pids, | ||
bool | use_minus_one_for_local ) |
Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.
Definition at line 150 of file Tpetra_Import_Util.hpp.
void Tpetra::Import_Util::getPids | ( | const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > & | Importer, |
Teuchos::ArrayView< int > & | pids, | ||
bool | use_minus_one_for_local ) |
Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.
Definition at line 163 of file Tpetra_Import_Util.hpp.
void Tpetra::Import_Util::getRemotePIDs | ( | const Tpetra::Import< LocalOrdinal, GlobalOrdinal, Node > & | Importer, |
Teuchos::Array< int > & | RemotePIDs ) |
Get a list of remote PIDs from an importer in the order corresponding to the remote LIDs.
Definition at line 203 of file Tpetra_Import_Util.hpp.