Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Stokhos::BlockDiagonalOperator Class Reference

An Epetra operator representing the block stochastic Galerkin operator. More...

#include <Stokhos_BlockDiagonalOperator.hpp>

Inheritance diagram for Stokhos::BlockDiagonalOperator:
Inheritance graph
[legend]

Public Member Functions

 BlockDiagonalOperator (const Teuchos::RCP< const EpetraExt::MultiComm > &mp_comm, int num_mp_blocks, const Teuchos::RCP< const Epetra_Map > &domain_base_map, const Teuchos::RCP< const Epetra_Map > &range_base_map, const Teuchos::RCP< const Epetra_Map > &domain_mp_map, const Teuchos::RCP< const Epetra_Map > &range_mp_map)
 Constructor. More...
 
virtual ~BlockDiagonalOperator ()
 Destructor. More...
 

Protected Attributes

std::string label
 Label for operator. More...
 
Teuchos::RCP< const
EpetraExt::MultiComm > 
mp_comm
 Stores MP parallel communicator. More...
 
int num_mp_blocks
 Stores number of blocks. More...
 
Teuchos::RCP< const Epetra_Mapdomain_base_map
 Stores domain base map. More...
 
Teuchos::RCP< const Epetra_Maprange_base_map
 Stores range base map. More...
 
Teuchos::RCP< const Epetra_Mapdomain_mp_map
 Stores domain MP map. More...
 
Teuchos::RCP< const Epetra_Maprange_mp_map
 Stores range MP map. More...
 
Teuchos::RCP
< Stokhos::ProductEpetraOperator
block_ops
 Stores operators. More...
 
bool useTranspose
 Whether to use transpose. More...
 

Private Member Functions

 BlockDiagonalOperator (const BlockDiagonalOperator &)
 Private to prohibit copying. More...
 
BlockDiagonalOperatoroperator= (const BlockDiagonalOperator &)
 Private to prohibit copying. More...
 
virtual void setupOperator (const Teuchos::RCP< Stokhos::ProductEpetraOperator > &ops)
 Setup operator. More...
 
virtual Teuchos::RCP
< Stokhos::ProductEpetraOperator
getMPOps ()
 Get multi-point ops. More...
 
virtual Teuchos::RCP< const
Stokhos::ProductEpetraOperator
getMPOps () const
 Get multi-point ops. More...
 

Epetra_Operator methods

virtual int SetUseTranspose (bool UseTranspose)
 Set to true if the transpose of the operator is requested. More...
 
virtual int Apply (const Epetra_MultiVector &Input, Epetra_MultiVector &Result) const
 Returns the result of a Epetra_Operator applied to a Epetra_MultiVector Input in Result as described above. More...
 
virtual int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of the inverse of the operator applied to a Epetra_MultiVector Input in Result as described above. More...
 
virtual double NormInf () const
 Returns an approximate infinity norm of the operator matrix. More...
 
virtual const char * Label () const
 Returns a character string describing the operator. More...
 
virtual bool UseTranspose () const
 Returns the current UseTranspose setting. More...
 
virtual bool HasNormInf () const
 Returns true if the this object can provide an approximate Inf-norm, false otherwise. More...
 
virtual const Epetra_CommComm () const
 Returns a reference to the Epetra_Comm communicator associated with this operator. More...
 
virtual const Epetra_MapOperatorDomainMap () const
 Returns the Epetra_Map object associated with the domain of this matrix operator. More...
 
virtual const Epetra_MapOperatorRangeMap () const
 Returns the Epetra_Map object associated with the range of this matrix operator. More...
 

Detailed Description

An Epetra operator representing the block stochastic Galerkin operator.

Definition at line 56 of file Stokhos_BlockDiagonalOperator.hpp.

Constructor & Destructor Documentation

Stokhos::BlockDiagonalOperator::BlockDiagonalOperator ( const Teuchos::RCP< const EpetraExt::MultiComm > &  mp_comm,
int  num_mp_blocks,
const Teuchos::RCP< const Epetra_Map > &  domain_base_map,
const Teuchos::RCP< const Epetra_Map > &  range_base_map,
const Teuchos::RCP< const Epetra_Map > &  domain_mp_map,
const Teuchos::RCP< const Epetra_Map > &  range_mp_map 
)

Constructor.

Definition at line 47 of file Stokhos_BlockDiagonalOperator.cpp.

Stokhos::BlockDiagonalOperator::~BlockDiagonalOperator ( )
virtual

Destructor.

Definition at line 67 of file Stokhos_BlockDiagonalOperator.cpp.

Stokhos::BlockDiagonalOperator::BlockDiagonalOperator ( const BlockDiagonalOperator )
private

Private to prohibit copying.

Member Function Documentation

void Stokhos::BlockDiagonalOperator::setupOperator ( const Teuchos::RCP< Stokhos::ProductEpetraOperator > &  ops)
virtual

Setup operator.

Definition at line 73 of file Stokhos_BlockDiagonalOperator.cpp.

Teuchos::RCP< Stokhos::ProductEpetraOperator > Stokhos::BlockDiagonalOperator::getMPOps ( )
virtual

Get multi-point ops.

Definition at line 81 of file Stokhos_BlockDiagonalOperator.cpp.

Teuchos::RCP< const Stokhos::ProductEpetraOperator > Stokhos::BlockDiagonalOperator::getMPOps ( ) const
virtual

Get multi-point ops.

Definition at line 88 of file Stokhos_BlockDiagonalOperator.cpp.

int Stokhos::BlockDiagonalOperator::SetUseTranspose ( bool  UseTranspose)
virtual

Set to true if the transpose of the operator is requested.

Implements Epetra_Operator.

Definition at line 95 of file Stokhos_BlockDiagonalOperator.cpp.

int Stokhos::BlockDiagonalOperator::Apply ( const Epetra_MultiVector Input,
Epetra_MultiVector Result 
) const
virtual

Returns the result of a Epetra_Operator applied to a Epetra_MultiVector Input in Result as described above.

Implements Epetra_Operator.

Definition at line 106 of file Stokhos_BlockDiagonalOperator.cpp.

int Stokhos::BlockDiagonalOperator::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
virtual

Returns the result of the inverse of the operator applied to a Epetra_MultiVector Input in Result as described above.

Implements Epetra_Operator.

Definition at line 127 of file Stokhos_BlockDiagonalOperator.cpp.

double Stokhos::BlockDiagonalOperator::NormInf ( ) const
virtual

Returns an approximate infinity norm of the operator matrix.

Implements Epetra_Operator.

Definition at line 150 of file Stokhos_BlockDiagonalOperator.cpp.

const char * Stokhos::BlockDiagonalOperator::Label ( ) const
virtual

Returns a character string describing the operator.

Implements Epetra_Operator.

Definition at line 164 of file Stokhos_BlockDiagonalOperator.cpp.

bool Stokhos::BlockDiagonalOperator::UseTranspose ( ) const
virtual

Returns the current UseTranspose setting.

Implements Epetra_Operator.

Definition at line 170 of file Stokhos_BlockDiagonalOperator.cpp.

bool Stokhos::BlockDiagonalOperator::HasNormInf ( ) const
virtual

Returns true if the this object can provide an approximate Inf-norm, false otherwise.

Implements Epetra_Operator.

Definition at line 176 of file Stokhos_BlockDiagonalOperator.cpp.

const Epetra_Comm & Stokhos::BlockDiagonalOperator::Comm ( ) const
virtual

Returns a reference to the Epetra_Comm communicator associated with this operator.

Implements Epetra_Operator.

Definition at line 184 of file Stokhos_BlockDiagonalOperator.cpp.

const Epetra_Map & Stokhos::BlockDiagonalOperator::OperatorDomainMap ( ) const
virtual

Returns the Epetra_Map object associated with the domain of this matrix operator.

Implements Epetra_Operator.

Definition at line 189 of file Stokhos_BlockDiagonalOperator.cpp.

const Epetra_Map & Stokhos::BlockDiagonalOperator::OperatorRangeMap ( ) const
virtual

Returns the Epetra_Map object associated with the range of this matrix operator.

Implements Epetra_Operator.

Definition at line 197 of file Stokhos_BlockDiagonalOperator.cpp.

BlockDiagonalOperator& Stokhos::BlockDiagonalOperator::operator= ( const BlockDiagonalOperator )
private

Private to prohibit copying.

Member Data Documentation

std::string Stokhos::BlockDiagonalOperator::label
protected

Label for operator.

Definition at line 155 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<const EpetraExt::MultiComm> Stokhos::BlockDiagonalOperator::mp_comm
protected

Stores MP parallel communicator.

Definition at line 158 of file Stokhos_BlockDiagonalOperator.hpp.

int Stokhos::BlockDiagonalOperator::num_mp_blocks
protected

Stores number of blocks.

Definition at line 161 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<const Epetra_Map> Stokhos::BlockDiagonalOperator::domain_base_map
protected

Stores domain base map.

Definition at line 164 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<const Epetra_Map> Stokhos::BlockDiagonalOperator::range_base_map
protected

Stores range base map.

Definition at line 167 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<const Epetra_Map> Stokhos::BlockDiagonalOperator::domain_mp_map
protected

Stores domain MP map.

Definition at line 170 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<const Epetra_Map> Stokhos::BlockDiagonalOperator::range_mp_map
protected

Stores range MP map.

Definition at line 173 of file Stokhos_BlockDiagonalOperator.hpp.

Teuchos::RCP<Stokhos::ProductEpetraOperator > Stokhos::BlockDiagonalOperator::block_ops
protected

Stores operators.

Definition at line 176 of file Stokhos_BlockDiagonalOperator.hpp.

bool Stokhos::BlockDiagonalOperator::useTranspose
protected

Whether to use transpose.

Definition at line 179 of file Stokhos_BlockDiagonalOperator.hpp.


The documentation for this class was generated from the following files: