47 #ifndef __Teko_ReorderedMappingStrategy_hpp__
48 #define __Teko_ReorderedMappingStrategy_hpp__
54 #include "Teuchos_RCP.hpp"
57 #include "Thyra_MultiVectorBase.hpp"
58 #include "Thyra_LinearOpBase.hpp"
61 #include "Epetra_Comm.h"
62 #include "Epetra_Map.h"
63 #include "Epetra_MultiVector.h"
64 #include "Epetra_Import.h"
65 #include "Epetra_Export.h"
66 #include "Epetra_CrsMatrix.h"
69 #include "Teko_BlockedReordering.hpp"
70 #include "Teko_EpetraOperatorWrapper.hpp"
75 class ReorderedMappingStrategy :
public MappingStrategy {
87 ReorderedMappingStrategy(
const BlockReorderManager & brm,
const Teuchos::RCP<const MappingStrategy> & map);
100 virtual void copyEpetraIntoThyra(
const Epetra_MultiVector& epetra_X,
101 const Teuchos::Ptr<Thyra::MultiVectorBase<double> > & thyra_X)
const;
110 virtual void copyThyraIntoEpetra(
const Teuchos::RCP<
const Thyra::MultiVectorBase<double> > & thyra_Y,
111 Epetra_MultiVector& epetra_Y)
const;
120 virtual const Teuchos::RCP<const Epetra_Map> domainMap()
const
121 {
return domainMap_; }
130 virtual const Teuchos::RCP<const Epetra_Map> rangeMap()
const
131 {
return rangeMap_; }
137 virtual std::string toString()
const
138 {
return std::string(
"ReorderedMappingStrategy"); }
143 virtual RCP<const MappingStrategy> GetPrimaryMapStrategy()
const
144 {
return mapStrategy_; }
151 Teuchos::RCP<const Epetra_Map> domainMap_;
152 Teuchos::RCP<const Epetra_Map> rangeMap_;
157 const BlockReorderManager reorderManager_;
158 RCP<const MappingStrategy> mapStrategy_;
virtual void copyThyraIntoEpetra(const RCP< const Thyra::MultiVectorBase< double > > &thyraX, Epetra_MultiVector &epetraX) const =0
Copy an Thyra::MultiVectorBase into a Epetra_MultiVector.