Teko  Version of the Day
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
Teko::TpetraHelpers::BlockedTpetraOperator Class Reference

Tear about a user specified Tpetra::Operator<ST,LO,GO,NT> (CrsMatrix) using a vector of vectors of GIDs for each block. More...

#include <Teko_BlockedTpetraOperator.hpp>

Inheritance diagram for Teko::TpetraHelpers::BlockedTpetraOperator:
Inheritance graph
[legend]

Public Member Functions

 BlockedTpetraOperator (const std::vector< std::vector< GO > > &vars, const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > &content, const std::string &label="<ANYM>")
 
virtual void SetContent (const std::vector< std::vector< GO > > &vars, const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > &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, ST tol) const
 Helps perform sanity checks. More...
 
- Public Member Functions inherited from Teko::TpetraHelpers::TpetraOperatorWrapper
const RCP< const
Thyra::LinearOpBase< ST > > 
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
Tpetra::Operator< ST, LO, GO,
NT > > 
GetBlock (int i, int j) const
 Grab the i,j block. More...
 

Detailed Description

Tear about a user specified Tpetra::Operator<ST,LO,GO,NT> (CrsMatrix) using a vector of vectors of GIDs for each block.

Definition at line 33 of file Teko_BlockedTpetraOperator.hpp.

Constructor & Destructor Documentation

Teko::TpetraHelpers::BlockedTpetraOperator::BlockedTpetraOperator ( const std::vector< std::vector< GO > > &  vars,
const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > &  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 34 of file Teko_BlockedTpetraOperator.cpp.

Member Function Documentation

void Teko::TpetraHelpers::BlockedTpetraOperator::SetContent ( const std::vector< std::vector< GO > > &  vars,
const Teuchos::RCP< const Tpetra::Operator< ST, LO, GO, NT > > &  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 41 of file Teko_BlockedTpetraOperator.cpp.

virtual void Teko::TpetraHelpers::BlockedTpetraOperator::RebuildOps ( )
inlinevirtual

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

Definition at line 61 of file Teko_BlockedTpetraOperator.hpp.

void Teko::TpetraHelpers::BlockedTpetraOperator::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 89 of file Teko_BlockedTpetraOperator.cpp.

void Teko::TpetraHelpers::BlockedTpetraOperator::RemoveReording ( )

Remove any reordering on this object.

Definition at line 106 of file Teko_BlockedTpetraOperator.cpp.

void Teko::TpetraHelpers::BlockedTpetraOperator::WriteBlocks ( const std::string &  prefix) const
virtual

Write out this operator to matrix market files

Definition at line 114 of file Teko_BlockedTpetraOperator.cpp.

bool Teko::TpetraHelpers::BlockedTpetraOperator::testAgainstFullOperator ( int  count,
ST  tol 
) const

Helps perform sanity checks.

Definition at line 137 of file Teko_BlockedTpetraOperator.cpp.


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