Public Member Functions
TSFExtended::SerialVectorType Class Reference
Inheritance diagram for TSFExtended::SerialVectorType:
TSFExtended::VectorTypeExtensions< double > Sundance::Handleable< VectorTypeExtensions< double > > Sundance::Printable

List of all members.

Public Member Functions

 SerialVectorType ()
 Construct a vector type.
virtual ~SerialVectorType ()
 virtual dtor
RCP< const
Thyra::VectorSpaceBase< double > > 
createSpace (int dimension, int nLocal, const int *locallyOwnedIndices, const MPIComm &comm) const
 create a distributed vector space.
virtual VectorSpace< double > createEvenlyPartitionedSpace (const MPIComm &comm, int nLocal) const
 Default implementation creates a vector space having nLocal elements on each processor.
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

Definition at line 47 of file TSFSerialVectorType.hpp.


Constructor & Destructor Documentation

SerialVectorType::SerialVectorType ( )

Construct a vector type.

Definition at line 38 of file TSFSerialVectorType.cpp.

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

virtual dtor

Definition at line 57 of file TSFSerialVectorType.hpp.


Member Function Documentation

VectorSpace< double > SerialVectorType::createEvenlyPartitionedSpace ( const MPIComm &  comm,
int  nLocal 
) const [virtual]

Default implementation creates a vector space having nLocal elements on each processor.

Serial types should override this to produce a replicated space.

Reimplemented from TSFExtended::VectorTypeExtensions< double >.

Definition at line 83 of file TSFSerialVectorType.cpp.

RCP< GhostImporter< double > > SerialVectorType::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 57 of file TSFSerialVectorType.cpp.

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

RCP< MatrixFactory< double > > SerialVectorType::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 67 of file TSFSerialVectorType.cpp.

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

RCP< const Thyra::VectorSpaceBase< double > > SerialVectorType::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 43 of file TSFSerialVectorType.cpp.

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

Print to stream.

Implements Sundance::Printable.

Definition at line 107 of file TSFSerialVectorType.hpp.

Site Contact