TSF extension of Thyra::EpetraVectorSpaceFactory, allowing use in handles and more extensive capability for creating distributed spaces. More...
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. | |
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.
| 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.
| RCP< GhostImporter< double > > EpetraVectorType::createGhostImporter | ( | const VectorSpace< double > & | space, |
| int | nGhost, | ||
| const int * | ghostIndices | ||
| ) | const [virtual] |
Create an importer for accessing ghost elements.
| space | the distributed vector space on which ghost elements are to be shared |
| nGhost | number of ghost elements needed by this processor |
| ghostIndices | read-only C array of off-processor indices needed by this processor. |
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.
| dimension | the dimension of the space |
| nLocal | number of indices owned by the local processor |
| locallyOwnedIndices | array 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.