10 #ifndef __Teko_BlockedEpetraOperator_hpp__
11 #define __Teko_BlockedEpetraOperator_hpp__
14 #include "Epetra_Operator.h"
17 #include "Teuchos_RCP.hpp"
19 #include "Thyra_LinearOpBase.hpp"
22 #include "Teko_BlockedReordering.hpp"
23 #include "Teko_EpetraOperatorWrapper.hpp"
24 #include "Teko_BlockedMappingStrategy.hpp"
43 const Teuchos::RCP<const Epetra_Operator> &content,
44 const std::string &label =
"<ANYM>");
54 virtual void SetContent(
const std::vector<std::vector<int> > &vars,
55 const Teuchos::RCP<const Epetra_Operator> &content);
62 virtual const Teuchos::RCP<const Epetra_Operator> GetContent()
const {
return fullContent_; }
64 virtual const Teuchos::RCP<const Epetra_Operator> GetContent() {
return fullContent_; }
66 const Teuchos::RCP<const Epetra_Operator> GetBlock(
int i,
int j)
const;
71 void Reorder(
const BlockReorderManager &brm);
78 virtual void WriteBlocks(
const std::string &prefix)
const;
89 virtual int SetUseTranspose(
bool ) {
return -1; }
91 virtual int ApplyInverse(
const Epetra_MultiVector & , Epetra_MultiVector & )
const {
92 TEUCHOS_ASSERT(
false);
96 virtual double NormInf()
const {
97 TEUCHOS_ASSERT(
false);
102 virtual bool UseTranspose()
const {
return false; }
103 virtual bool HasNormInf()
const {
return false; }
104 virtual const Epetra_Comm &Comm()
const {
return fullContent_->Comm(); }
111 Teuchos::RCP<const Epetra_Operator> fullContent_;
112 Teuchos::RCP<BlockedMappingStrategy> blockedMapping_;
113 Teuchos::RCP<Thyra::LinearOpBase<double> > blockedOperator_;
114 Teuchos::RCP<const BlockReorderManager> reorderManager_;
118 void BuildBlockedOperator();
virtual void RebuildOps()
bool testAgainstFullOperator(int count, double tol) const
Helps perform sanity checks.
void Reorder(const BlockReorderManager &brm)
Implements the Epetra_Operator interface with a Thyra LinearOperator. This enables the use of absrtac...
virtual void SetContent(const std::vector< std::vector< int > > &vars, const Teuchos::RCP< const Epetra_Operator > &content)
void RemoveReording()
Remove any reordering on this object.
Tear about a user specified Epetra_Operator (CrsMatrix) using a vector of vectors of GIDs for each bl...
BlockedEpetraOperator(const std::vector< std::vector< int > > &vars, const Teuchos::RCP< const Epetra_Operator > &content, const std::string &label="<ANYM>")
virtual void WriteBlocks(const std::string &prefix) const