Teko Version of the Day
Public Member Functions | Protected Attributes
Teko::Epetra::BlockedEpetraOperator Class Reference

Tear about a user specified Epetra_Operator (CrsMatrix) using a vector of vectors of GIDs for each block. More...

#include <Teko_BlockedEpetraOperator.hpp>

Inheritance diagram for Teko::Epetra::BlockedEpetraOperator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BlockedEpetraOperator (const std::vector< std::vector< int > > &vars, const Teuchos::RCP< Epetra_Operator > &content, const std::string &label="<ANYM>")
virtual void SetContent (const std::vector< std::vector< int > > &vars, const Teuchos::RCP< Epetra_Operator > &content)
virtual void RebuildOps ()
const Teuchos::RCP< const
Epetra_Operator > 
GetBlock (int i, int j) const
 Grab the i,j block.
void Reorder (const BlockReorderManager &brm)
void RemoveReording ()
 Remove any reordering on this object.
virtual void WriteBlocks (const std::string &prefix) const
virtual int SetUseTranspose (bool useTranspose)
virtual int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual double NormInf () const
virtual bool UseTranspose () const
virtual bool HasNormInf () const
virtual const Epetra_Comm & Comm () const

Protected Attributes

std::string label_

Detailed Description

Tear about a user specified Epetra_Operator (CrsMatrix) using a vector of vectors of GIDs for each block.

Definition at line 69 of file Teko_BlockedEpetraOperator.hpp.


Constructor & Destructor Documentation

Teko::Epetra::BlockedEpetraOperator::BlockedEpetraOperator ( const std::vector< std::vector< int > > &  vars,
const Teuchos::RCP< Epetra_Operator > &  content,
const std::string &  label = "<ANYM>" 
)

Build a blocked operator based on a vector of vector of global IDs.

Parameters:
[in]varsVector of vectors of global ids specifying how the operator is to be blocked.
[in]contentOperator to be blocked
[in]labelLabel for name the operator

Definition at line 73 of file Teko_BlockedEpetraOperator.cpp.


Member Function Documentation

void Teko::Epetra::BlockedEpetraOperator::SetContent ( const std::vector< std::vector< int > > &  vars,
const Teuchos::RCP< Epetra_Operator > &  content 
) [virtual]

Build a blocked operator based on a vector of vector of global IDs. This function basically sets up the mapping strategy used by this operator.

Parameters:
[in]varsVector of vectors of global ids specifying how the operator is to be blocked.
[in]contentOperator to be blocked

Definition at line 81 of file Teko_BlockedEpetraOperator.cpp.

virtual void Teko::Epetra::BlockedEpetraOperator::RebuildOps ( ) [inline, virtual]

Force a rebuild of the blocked operator from the stored content operator.

Definition at line 98 of file Teko_BlockedEpetraOperator.hpp.

const Teuchos::RCP< const Epetra_Operator > Teko::Epetra::BlockedEpetraOperator::GetBlock ( int  i,
int  j 
) const

Grab the i,j block.

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 119 of file Teko_BlockedEpetraOperator.cpp.

void Teko::Epetra::BlockedEpetraOperator::Reorder ( const BlockReorderManager brm)

Use a reorder manager to block this operator as desired. Multiple calls to the function reorder only the underlying object.

Definition at line 130 of file Teko_BlockedEpetraOperator.cpp.

void Teko::Epetra::BlockedEpetraOperator::RemoveReording ( )

Remove any reordering on this object.

Definition at line 147 of file Teko_BlockedEpetraOperator.cpp.

void Teko::Epetra::BlockedEpetraOperator::WriteBlocks ( const std::string &  prefix) const [virtual]

Write out this operator to matrix market files

Definition at line 156 of file Teko_BlockedEpetraOperator.cpp.

virtual int Teko::Epetra::BlockedEpetraOperator::SetUseTranspose ( bool  UseTranspose) [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 130 of file Teko_BlockedEpetraOperator.hpp.

virtual int Teko::Epetra::BlockedEpetraOperator::ApplyInverse ( const Epetra_MultiVector &  X,
Epetra_MultiVector &  Y 
) const [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 133 of file Teko_BlockedEpetraOperator.hpp.

virtual double Teko::Epetra::BlockedEpetraOperator::NormInf ( ) const [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 136 of file Teko_BlockedEpetraOperator.hpp.

virtual bool Teko::Epetra::BlockedEpetraOperator::UseTranspose ( ) const [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 140 of file Teko_BlockedEpetraOperator.hpp.

virtual bool Teko::Epetra::BlockedEpetraOperator::HasNormInf ( ) const [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 141 of file Teko_BlockedEpetraOperator.hpp.

virtual const Epetra_Comm& Teko::Epetra::BlockedEpetraOperator::Comm ( ) const [inline, virtual]

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 142 of file Teko_BlockedEpetraOperator.hpp.


Member Data Documentation

Reimplemented from Teko::Epetra::EpetraOperatorWrapper.

Definition at line 151 of file Teko_BlockedEpetraOperator.hpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables