Teko  Version of the Day
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
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]

Public Member Functions

 BlockedEpetraOperator (const std::vector< std::vector< int > > &vars, const Teuchos::RCP< const Epetra_Operator > &content, const std::string &label="<ANYM>")
 
virtual void SetContent (const std::vector< std::vector< int > > &vars, const Teuchos::RCP< const Epetra_Operator > &content)
 
virtual void RebuildOps ()
 
void Reorder (const BlockReorderManager &brm)
 
void RemoveReording ()
 Remove any reordering on this object. More...
 
virtual void WriteBlocks (const std::string &prefix) const
 
bool testAgainstFullOperator (int count, double tol) const
 Helps perform sanity checks. More...
 
- Public Member Functions inherited from Teko::Epetra::EpetraOperatorWrapper
const RCP< const
Thyra::LinearOpBase< double > > 
getThyraOp () const
 Return the thyra operator associated with this wrapper. More...
 
const RCP< const MappingStrategygetMapStrategy () const
 Get the mapping strategy for this wrapper (translate between Thyra and Epetra) More...
 
virtual int GetBlockRowCount ()
 Get the number of block rows in this operator. More...
 
virtual int GetBlockColCount ()
 Get the number of block columns in this operator. More...
 
Teuchos::RCP< const
Epetra_Operator > 
GetBlock (int i, int j) const
 Grab the i,j block. More...
 

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< const 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< const 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 ( )
inlinevirtual

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

Reimplemented in Teko::NS::ALOperator.

Definition at line 98 of file Teko_BlockedEpetraOperator.hpp.

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.

bool Teko::Epetra::BlockedEpetraOperator::testAgainstFullOperator ( int  count,
double  tol 
) const

Helps perform sanity checks.

Definition at line 181 of file Teko_BlockedEpetraOperator.cpp.


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