Public Member Functions
TSFExtended::EpetraVectorType Class Reference

TSF extension of Thyra::EpetraVectorSpaceFactory, allowing use in handles and more extensive capability for creating distributed spaces. More...

Inheritance diagram for TSFExtended::EpetraVectorType:
TSFExtended::VectorTypeExtensions< double > Sundance::Handleable< VectorTypeExtensions< double > > Sundance::Printable

List of all members.

Public Member Functions

 EpetraVectorType ()
 Construct a vector type.
virtual ~EpetraVectorType ()
 virtual dtor
RCP< const
Thyra::VectorSpaceBase< double > > 
createSpace (int dimension, int nLocal, const int *locallyOwnedIndices, const MPIComm &comm) const
 create a distributed vector space.
RCP< GhostImporter< double > > createGhostImporter (const VectorSpace< double > &space, int nGhost, const int *ghostIndices) const
 Create an importer for accessing ghost elements.
RCP< MatrixFactory< double > > createMatrixFactory (const VectorSpace< double > &domain, const VectorSpace< double > &range) const
 Create a matrix factory of type compatible with this vector type, sized according to the given domain and range spaces.
Printable interface
void print (std::ostream &os) const
 Print to stream.

Detailed Description

TSF extension of Thyra::EpetraVectorSpaceFactory, allowing use in handles and more extensive capability for creating distributed spaces.

This class derives from Thyra::EpetraVectorSpaceFactory, so it can be used seamlessly in any Thyra-based code.

Definition at line 53 of file TSFEpetraVectorType.hpp.


Constructor & Destructor Documentation

EpetraVectorType::EpetraVectorType ( )

Construct a vector type.

Definition at line 48 of file TSFEpetraVectorType.cpp.

virtual TSFExtended::EpetraVectorType::~EpetraVectorType ( ) [inline, virtual]

virtual dtor

Definition at line 63 of file TSFEpetraVectorType.hpp.


Member Function Documentation

RCP< GhostImporter< double > > EpetraVectorType::createGhostImporter ( const VectorSpace< double > &  space,
int  nGhost,
const int *  ghostIndices 
) const [virtual]

Create an importer for accessing ghost elements.

Parameters:
spacethe distributed vector space on which ghost elements are to be shared
nGhostnumber of ghost elements needed by this processor
ghostIndicesread-only C array of off-processor indices needed by this processor.
Returns:
A RCP to a GhostImporter object.

Implements TSFExtended::VectorTypeExtensions< double >.

Definition at line 74 of file TSFEpetraVectorType.cpp.

References Sundance::Handle< PointerType >::description(), TSFExtended::EpetraVectorSpace::epetraMap(), and Sundance::Handle< PointerType >::ptr().

RCP< MatrixFactory< double > > EpetraVectorType::createMatrixFactory ( const VectorSpace< double > &  domain,
const VectorSpace< double > &  range 
) const [virtual]

Create a matrix factory of type compatible with this vector type, sized according to the given domain and range spaces.

Implements TSFExtended::VectorTypeExtensions< double >.

Definition at line 90 of file TSFEpetraVectorType.cpp.

References Sundance::Handle< PointerType >::ptr().

RCP< const Thyra::VectorSpaceBase< double > > EpetraVectorType::createSpace ( int  dimension,
int  nLocal,
const int *  locallyOwnedIndices,
const MPIComm &  comm 
) const [virtual]

create a distributed vector space.

Parameters:
dimensionthe dimension of the space
nLocalnumber of indices owned by the local processor
locallyOwnedIndicesarray of indices owned by this processor

Implements TSFExtended::VectorTypeExtensions< double >.

Definition at line 53 of file TSFEpetraVectorType.cpp.

void TSFExtended::EpetraVectorType::print ( std::ostream &  os) const [inline, virtual]

Print to stream.

Implements Sundance::Printable.

Definition at line 104 of file TSFEpetraVectorType.hpp.

Site Contact