Tpetra::Import< OrdinalType > Class Template Reference

Tpetra::Import: This class builds an import object for efficient importing of off-processor elements. More...

#include <Tpetra_Import.hpp>

Inheritance diagram for Tpetra::Import< OrdinalType >:

Inheritance graph
[legend]
Collaboration diagram for Tpetra::Import< OrdinalType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Import (ElementSpace< OrdinalType > const &source, ElementSpace< OrdinalType > const &target)
 Constructs a Import object from the source and target ElementSpaces.
 Import (Import< OrdinalType > const &import)
 copy constructor.
 ~Import ()
 destructor.
OrdinalType getNumSameIDs () const
 Returns the number of elements that are identical between the source and target spaces, up to the first different ID.
OrdinalType getNumPermuteIDs () const
 Returns the number of elements that are local to the calling image, but not part of the first getNumSameIDs() elements.
std::vector< OrdinalType
> const & 
getPermuteFromLIDs () const
 List of elements in the source space that are permuted.
std::vector< OrdinalType
> const & 
getPermuteToLIDs () const
 List of elements in the target space that are permuted.
OrdinalType getNumRemoteIDs () const
 Returns the number of elements that are not on the calling image.
std::vector< OrdinalType
> const & 
getRemoteLIDs () const
 List of elements in the target space that are coming from other images.
OrdinalType getNumExportIDs () const
 Returns the number of elements that must be sent by the calling image to other images.
std::vector< OrdinalType
> const & 
getExportLIDs () const
 List of elements in the source space that will be sent to other images.
std::vector< OrdinalType
> const & 
getExportImageIDs () const
 List of images to which elements will be sent, getExportLIDs() [i] will be sent to image getExportImageIDs() [i].
ElementSpace< OrdinalType
> const & 
getSourceSpace () const
 Returns the Source ElementSpace used to construct this importer.
ElementSpace< OrdinalType
> const & 
getTargetSpace () const
 Returns the Target ElementSpace used to construct this importer.
Distributor< OrdinalType
> const & 
getDistributor () const
Import< OrdinalType > & operator= (Import< OrdinalType > const &Source)
 Assignment operator.
virtual void print (ostream &os) const
 print method inherited from Object

Detailed Description

template<typename OrdinalType>
class Tpetra::Import< OrdinalType >

Tpetra::Import: This class builds an import object for efficient importing of off-processor elements.

Import is used to construct a communication plan that can be called repeatedly by computational classes such the Tpetra CisMatrix and Vector classes to efficiently import elements from other images. An importer is used when we start out with a uniquely-owned distribution, and want to distribute that into a multiple-ownership distribution.

This class currently has one constructor, taking two ElementSpace objects. The first ElementSpace specifies the distribution we have now. The second ElementSpace specifies the distribution we want to have after importing.

NOTE: Behavior is undefined if the source ElementSpace is not uniquely-owned.


The documentation for this class was generated from the following file:
Generated on Tue Oct 20 12:56:02 2009 for Tpetra by doxygen 1.4.7