10 #ifndef __Teko_ReorderedMappingStrategy_hpp__
11 #define __Teko_ReorderedMappingStrategy_hpp__
17 #include "Teuchos_RCP.hpp"
20 #include "Thyra_MultiVectorBase.hpp"
21 #include "Thyra_LinearOpBase.hpp"
24 #include "Epetra_Comm.h"
25 #include "Epetra_Map.h"
26 #include "Epetra_MultiVector.h"
27 #include "Epetra_Import.h"
28 #include "Epetra_Export.h"
29 #include "Epetra_CrsMatrix.h"
32 #include "Teko_BlockedReordering.hpp"
33 #include "Teko_EpetraOperatorWrapper.hpp"
38 class ReorderedMappingStrategy :
public MappingStrategy {
50 ReorderedMappingStrategy(
const BlockReorderManager& brm,
51 const Teuchos::RCP<const MappingStrategy>& map);
64 virtual void copyEpetraIntoThyra(
65 const Epetra_MultiVector& epetra_X,
66 const Teuchos::Ptr<Thyra::MultiVectorBase<double> >& thyra_X)
const;
76 const Teuchos::RCP<
const Thyra::MultiVectorBase<double> >& thyra_Y,
77 Epetra_MultiVector& epetra_Y)
const;
86 virtual const Teuchos::RCP<const Epetra_Map> domainMap()
const {
return domainMap_; }
95 virtual const Teuchos::RCP<const Epetra_Map> rangeMap()
const {
return rangeMap_; }
101 virtual std::string toString()
const {
return std::string(
"ReorderedMappingStrategy"); }
106 virtual RCP<const MappingStrategy> GetPrimaryMapStrategy()
const {
return mapStrategy_; }
113 Teuchos::RCP<const Epetra_Map> domainMap_;
114 Teuchos::RCP<const Epetra_Map> rangeMap_;
119 const BlockReorderManager reorderManager_;
120 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.