MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

MueLu utility class for Import-related routines. More...

#include <MueLu_ImportUtils.hpp>

Public Member Functions

void getPidGidPairs (const Xpetra::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.
 
void getPids (const Xpetra::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 Xpetra::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 Xpetra::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.
 

Detailed Description

template<class LocalOrdinal, class GlobalOrdinal, class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
class MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node >

MueLu utility class for Import-related routines.

The routines should be independent from Epetra/Tpetra and be purely implemented in Xpetra.

Definition at line 44 of file MueLu_ImportUtils.hpp.

Member Function Documentation

◆ getPidGidPairs()

template<class LocalOrdinal , class GlobalOrdinal , class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node >::getPidGidPairs ( const Xpetra::Import< LocalOrdinal, GlobalOrdinal, Node > &  Importer,
Teuchos::Array< std::pair< int, GlobalOrdinal > > &  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 55 of file MueLu_ImportUtils.hpp.

◆ getPids() [1/2]

template<class LocalOrdinal , class GlobalOrdinal , class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node >::getPids ( const Xpetra::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 72 of file MueLu_ImportUtils.hpp.

◆ getPids() [2/2]

template<class LocalOrdinal , class GlobalOrdinal , class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node >::getPids ( const Xpetra::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 90 of file MueLu_ImportUtils.hpp.

◆ getRemotePIDs()

template<class LocalOrdinal , class GlobalOrdinal , class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::ImportUtils< LocalOrdinal, GlobalOrdinal, Node >::getRemotePIDs ( const Xpetra::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 108 of file MueLu_ImportUtils.hpp.


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