10 #ifndef __Teko_BasicMappingStrategy_hpp__
11 #define __Teko_BasicMappingStrategy_hpp__
17 #include "Teuchos_RCP.hpp"
20 #include "Thyra_MultiVectorBase.hpp"
23 #include "Epetra_Comm.h"
24 #include "Epetra_Map.h"
25 #include "Epetra_MultiVector.h"
28 #include "Teko_EpetraOperatorWrapper.hpp"
33 class BasicMappingStrategy :
public MappingStrategy {
47 BasicMappingStrategy(
const Teuchos::RCP<const Epetra_Map>& rMap,
48 const Teuchos::RCP<const Epetra_Map>& dMap,
const Epetra_Comm& comm);
62 virtual void copyEpetraIntoThyra(
63 const Epetra_MultiVector& epetra_X,
64 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;
87 virtual const Teuchos::RCP<const Epetra_Map> domainMap()
const {
return domainMap_; }
96 virtual const Teuchos::RCP<const Epetra_Map> rangeMap()
const {
return rangeMap_; }
102 virtual std::string toString()
const {
return std::string(
"BasicMappingStrategy"); }
111 Teuchos::RCP<const Epetra_Map> domainMap_;
112 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.