Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::ImportUtils< int, int, EpetraNode > Class Reference

#include <Xpetra_ImportUtils.hpp>

Public Member Functions

void getPidGidPairs (const Import< LocalOrdinal, GlobalOrdinal, Node > &Importer, Teuchos::Array< std::pair< int, GlobalOrdinal > > &gpids, bool use_minus_one_for_local)
 
void getPids (const 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.
 
void getPids (const 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.
 
void getRemotePIDs (const 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.
 
void getPidGidPairs (const Import< int, int, EpetraNode > &Importer, Teuchos::Array< std::pair< int, int > > &gpids, bool use_minus_one_for_local)
 For each GID in the TargetMap, find who owns the GID in the SourceMap.
 
void getPids (const Import< int, int, EpetraNode > &Importer, Teuchos::Array< int > &pids, bool use_minus_one_for_local)
 Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.
 
void getPids (const Import< int, int, EpetraNode > &Importer, Teuchos::ArrayView< int > &pids, bool use_minus_one_for_local)
 Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.
 
void getRemotePIDs (const Import< int, int, EpetraNode > &Importer, Teuchos::Array< int > &RemotePIDs)
 Get a list of remote PIDs from an importer in the order corresponding to the remote LIDs.
 

Private Types

typedef int LocalOrdinal
 
typedef int GlobalOrdinal
 
typedef EpetraNode Node
 

Detailed Description

Definition at line 168 of file Xpetra_ImportUtils.hpp.

Member Typedef Documentation

◆ LocalOrdinal

typedef int Xpetra::ImportUtils< int, int, EpetraNode >::LocalOrdinal
private

Definition at line 169 of file Xpetra_ImportUtils.hpp.

◆ GlobalOrdinal

typedef int Xpetra::ImportUtils< int, int, EpetraNode >::GlobalOrdinal
private

Definition at line 170 of file Xpetra_ImportUtils.hpp.

◆ Node

typedef EpetraNode Xpetra::ImportUtils< int, int, EpetraNode >::Node
private

Definition at line 171 of file Xpetra_ImportUtils.hpp.

Member Function Documentation

◆ getPidGidPairs() [1/2]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPidGidPairs ( const Import< LocalOrdinal, GlobalOrdinal, Node > & Importer,
Teuchos::Array< std::pair< int, GlobalOrdinal > > & gpids,
bool use_minus_one_for_local )
inline

Definition at line 176 of file Xpetra_ImportUtils.hpp.

◆ getPids() [1/4]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPids ( const Import< LocalOrdinal, GlobalOrdinal, Node > & Importer,
Teuchos::Array< int > & pids,
bool use_minus_one_for_local )
inline

Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.

Definition at line 196 of file Xpetra_ImportUtils.hpp.

◆ getPids() [2/4]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPids ( const Import< LocalOrdinal, GlobalOrdinal, Node > & Importer,
Teuchos::ArrayView< int > & pids,
bool use_minus_one_for_local )
inline

Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.

Definition at line 216 of file Xpetra_ImportUtils.hpp.

◆ getRemotePIDs() [1/2]

void Xpetra::ImportUtils< int, int, EpetraNode >::getRemotePIDs ( const Import< LocalOrdinal, GlobalOrdinal, Node > & Importer,
Teuchos::Array< int > & RemotePIDs )
inline

Get a list of remote PIDs from an importer in the order corresponding to the remote LIDs.

Definition at line 235 of file Xpetra_ImportUtils.hpp.

◆ getPidGidPairs() [2/2]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPidGidPairs ( const Import< int, int, EpetraNode > & Importer,
Teuchos::Array< std::pair< int, int > > & gpids,
bool use_minus_one_for_local )
inline

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 92 of file Xpetra_ImportUtils.hpp.

◆ getPids() [3/4]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPids ( const Import< int, int, EpetraNode > & Importer,
Teuchos::Array< int > & pids,
bool use_minus_one_for_local )
inline

Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.

Definition at line 110 of file Xpetra_ImportUtils.hpp.

◆ getPids() [4/4]

void Xpetra::ImportUtils< int, int, EpetraNode >::getPids ( const Import< int, int, EpetraNode > & Importer,
Teuchos::ArrayView< int > & pids,
bool use_minus_one_for_local )
inline

Like getPidGidPairs, but just gets the PIDs, ordered by the column Map.

Definition at line 129 of file Xpetra_ImportUtils.hpp.

◆ getRemotePIDs() [2/2]

void Xpetra::ImportUtils< int, int, EpetraNode >::getRemotePIDs ( const Import< int, int, EpetraNode > & Importer,
Teuchos::Array< int > & RemotePIDs )
inline

Get a list of remote PIDs from an importer in the order corresponding to the remote LIDs.

Definition at line 148 of file Xpetra_ImportUtils.hpp.


The documentation for this class was generated from the following file: