Thyra::MPIVectorSpaceFactoryStd< Scalar > Class Template Reference
[Efficient Generic MPI-based SPMD Concrete Thyra Operator/Vector Subclass Implementations]

Concrete implementation of a vector-space factory for a serial locally-replicated distributed MPIVectorSpaceStd objects. More...

#include <Thyra_MPIVectorSpaceFactoryStdDecl.hpp>

Inheritance diagram for Thyra::MPIVectorSpaceFactoryStd< Scalar >:

[legend]
List of all members.

Overridden from VectorSpaceFactoryBase

Teuchos::RefCountPtr< const
VectorSpaceBase< Scalar > > 
createVecSpc (int dim) const
 Create a new locally-replicated MPIVectorSpaceStd object given its dimension!

Public Member Functions

 MPIVectorSpaceFactoryStd (MPI_Comm mpiComm)
 Construct with an MPI_Comm object.
MPI_Comm mpiComm () const
 Return the MPI communicator.

Detailed Description

template<class Scalar>
class Thyra::MPIVectorSpaceFactoryStd< Scalar >

Concrete implementation of a vector-space factory for a serial locally-replicated distributed MPIVectorSpaceStd objects.

This will create either serial (mpiComm==MPI_COMM_NULL) or locally replicated (mpiComm!=MPI_COMM_NULL) vector space objects (see createVecSpc()). The primary motivation for this subclass is to create locally replicated vector spaces for the domain space of MPIMultiVectorStd. In addition, an object of this type is also returned from MPIVectorSpaceBase::smallVecSpcFtcy().

Note that the default constructor is not allowed to avoid mistakes in using this class.

Definition at line 54 of file Thyra_MPIVectorSpaceFactoryStdDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar>
Thyra::MPIVectorSpaceFactoryStd< Scalar >::MPIVectorSpaceFactoryStd MPI_Comm  mpiComm  ) 
 

Construct with an MPI_Comm object.

Parameters:
mpiComm [in] The MPI communicator. This object must be maintained by the client the entire time that this is in use.
Postconditions:

Definition at line 38 of file Thyra_MPIVectorSpaceFactoryStd.hpp.


Member Function Documentation

template<class Scalar>
MPI_Comm Thyra::MPIVectorSpaceFactoryStd< Scalar >::mpiComm  )  const [inline]
 

Return the MPI communicator.

Definition at line 105 of file Thyra_MPIVectorSpaceFactoryStdDecl.hpp.

template<class Scalar>
Teuchos::RefCountPtr< const VectorSpaceBase< Scalar > > Thyra::MPIVectorSpaceFactoryStd< Scalar >::createVecSpc int  dim  )  const [virtual]
 

Create a new locally-replicated MPIVectorSpaceStd object given its dimension!

Parameters:
dim [in] The dimension of the (locally replicated) vector space to create.
This function returns:

   return Teuchos::rcp(new MPIVectorSpaceStd(this->mpiComm(),dim,dim))</tt>

and therefore return->dim()==dim and this implementation fully satisfies the specification of VectorSpaceFactoryBase::createVecSpc().

Implements Thyra::VectorSpaceFactoryBase< Scalar >.

Definition at line 44 of file Thyra_MPIVectorSpaceFactoryStd.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:39:54 2008 for Thyra ANA Operator/VectorBase Interfaces and Related Software by doxygen 1.3.9.1