Tear about a user specified Epetra_Operator (CrsMatrix) using a vector of vectors of GIDs for each block. More...
#include <Teko_BlockedEpetraOperator.hpp>
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 MappingStrategy > | getMapStrategy () 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... | |
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.
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.
[in] | vars | Vector of vectors of global ids specifying how the operator is to be blocked. |
[in] | content | Operator to be blocked |
[in] | label | Label for name the operator |
Definition at line 73 of file Teko_BlockedEpetraOperator.cpp.
|
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.
[in] | vars | Vector of vectors of global ids specifying how the operator is to be blocked. |
[in] | content | Operator to be blocked |
Definition at line 81 of file Teko_BlockedEpetraOperator.cpp.
|
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.
|
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 180 of file Teko_BlockedEpetraOperator.cpp.