Stokhos Development
Public Types | Public Member Functions | Protected Attributes
Stokhos::ProductEpetraVector Class Reference

A container class for products of Epetra_Vector's. More...

#include <Stokhos_ProductEpetraVector.hpp>

Inheritance diagram for Stokhos::ProductEpetraVector:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::ProductEpetraVector:
Collaboration graph
[legend]

List of all members.

Public Types

typedef double value_type
 Typename of values.
typedef int ordinal_type
 Typename of ordinals.

Public Member Functions

 ProductEpetraVector ()
 Default constructor.
 ProductEpetraVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map)
 Create a container with container map block_map.
 ProductEpetraVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Create a container with container map block_map where each coefficient is generated from the supplied coefficient map coeff_map.
 ProductEpetraVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Create a container with container map block_map where each coefficient is generated from the supplied coefficient map coeff_map.
 ProductEpetraVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, Epetra_DataAccess CV, const Epetra_Vector &block_vector)
 Create a container with container map block_map where each coefficient is given by the supplied block vector.
 ProductEpetraVector (const ProductEpetraVector &v)
 Copy constructor.
virtual ~ProductEpetraVector ()
 Destructor.
ProductEpetraVectoroperator= (const ProductEpetraVector &v)
 Assignment.
ProductEpetraVectoroperator= (const Epetra_Vector &v)
 Assignment.
void assignToBlockVector (Epetra_Vector &v) const
 Assignment.
void assignFromBlockVector (const Epetra_Vector &v)
 Assignment.
Teuchos::RCP< const
Epetra_BlockMap > 
coefficientMap () const
 Get coefficient map.
Teuchos::RCP< const
Epetra_BlockMap > 
productMap () const
 Get product map.
Teuchos::RCP< const
EpetraExt::MultiComm > 
productComm () const
 Get product comm.
void reset (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Reset to a new size.
void reset (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Reset to a new size.
void resetCoefficients (Epetra_DataAccess CV, const Epetra_Vector &block_vector)
 Reset vector cofficients.
Teuchos::RCP
< EpetraExt::BlockVector > 
getBlockVector ()
 Get block vector.
Teuchos::RCP< const
EpetraExt::BlockVector > 
getBlockVector () const
 Get block vector.
void setBlockVector (const Teuchos::RCP< EpetraExt::BlockVector > &block_vec)
 Set block vector.
void sumAll ()
 Sum coefficients across processors, storing result in this.

Protected Attributes

Teuchos::RCP< const
Epetra_BlockMap > 
coeff_map
 Product map of block vector.
Teuchos::RCP< const
EpetraExt::MultiComm > 
product_comm
 Product multi-level communicator.
Teuchos::RCP< const
Epetra_BlockMap > 
product_map
 Product map of block vector.
Teuchos::RCP
< EpetraExt::BlockVector > 
bv
 Block vector storing coefficients.

Detailed Description

A container class for products of Epetra_Vector's.


Constructor & Destructor Documentation

Stokhos::ProductEpetraVector::ProductEpetraVector ( )

Default constructor.

Use with care! Generally you will want to call reset() before using any of the methods on this class.

Stokhos::ProductEpetraVector::ProductEpetraVector ( const ProductEpetraVector v)

Copy constructor.

NOTE: This is a shallow copy


Member Function Documentation

Stokhos::ProductEpetraVector & Stokhos::ProductEpetraVector::operator= ( const ProductEpetraVector v)

Assignment.

NOTE: This is a shallow copy

void Stokhos::ProductEpetraVector::reset ( const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm 
)

Reset to a new size.

This resizes array to fit new size.

void Stokhos::ProductEpetraVector::reset ( const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const Epetra_BlockMap > &  product_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm 
)

Reset to a new size.

This resizes array to fit new size.

void Stokhos::ProductEpetraVector::sumAll ( )

Sum coefficients across processors, storing result in this.

This is only appropriate for local-replicated parallel maps


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator