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>
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 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 Tpetra::Operator< ST, LO, GO, NT > > | GetBlock (int i, int j) const |
Grab the i,j block. More... | |
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 70 of file Teko_BlockedTpetraOperator.hpp.
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.
[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 71 of file Teko_BlockedTpetraOperator.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 79 of file Teko_BlockedTpetraOperator.cpp.
|
inlinevirtual |
Force a rebuild of the blocked operator from the stored content operator.
Definition at line 99 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 129 of file Teko_BlockedTpetraOperator.cpp.
void Teko::TpetraHelpers::BlockedTpetraOperator::RemoveReording | ( | ) |
Remove any reordering on this object.
Definition at line 146 of file Teko_BlockedTpetraOperator.cpp.
|
virtual |
Write out this operator to matrix market files
Definition at line 155 of file Teko_BlockedTpetraOperator.cpp.
bool Teko::TpetraHelpers::BlockedTpetraOperator::testAgainstFullOperator | ( | int | count, |
ST | tol | ||
) | const |
Helps perform sanity checks.
Definition at line 181 of file Teko_BlockedTpetraOperator.cpp.