47 #ifndef __Teko_BasicMappingStrategy_hpp__
48 #define __Teko_BasicMappingStrategy_hpp__
54 #include "Teuchos_RCP.hpp"
57 #include "Thyra_MultiVectorBase.hpp"
60 #include "Epetra_Comm.h"
61 #include "Epetra_Map.h"
62 #include "Epetra_MultiVector.h"
65 #include "Teko_EpetraOperatorWrapper.hpp"
70 class BasicMappingStrategy :
public MappingStrategy {
84 BasicMappingStrategy(
const Teuchos::RCP<const Epetra_Map> & rMap,
85 const Teuchos::RCP<const Epetra_Map> & dMap,
const Epetra_Comm & comm);
99 virtual void copyEpetraIntoThyra(
const Epetra_MultiVector& epetra_X,
100 const Teuchos::Ptr<Thyra::MultiVectorBase<double> > & thyra_X)
const;
111 virtual void copyThyraIntoEpetra(
const Teuchos::RCP<
const Thyra::MultiVectorBase<double> > & thyra_Y,
112 Epetra_MultiVector& epetra_Y)
const;
122 virtual const Teuchos::RCP<const Epetra_Map> domainMap()
const
123 {
return domainMap_; }
132 virtual const Teuchos::RCP<const Epetra_Map> rangeMap()
const
133 {
return rangeMap_; }
139 virtual std::string toString()
const
140 {
return std::string(
"BasicMappingStrategy"); }
149 Teuchos::RCP<const Epetra_Map> domainMap_;
150 Teuchos::RCP<const Epetra_Map> rangeMap_;
virtual void copyThyraIntoEpetra(const RCP< const Thyra::MultiVectorBase< double > > &thyraX, Epetra_MultiVector &epetraX) const =0
Copy an Thyra::MultiVectorBase into a Epetra_MultiVector.