10 #ifndef __Teko_TpetraBasicMappingStrategy_hpp__
11 #define __Teko_TpetraBasicMappingStrategy_hpp__
17 #include "Teuchos_RCP.hpp"
20 #include "Thyra_MultiVectorBase.hpp"
23 #include "Tpetra_Map.hpp"
24 #include "Tpetra_MultiVector.hpp"
27 #include "Teko_TpetraOperatorWrapper.hpp"
28 #include "Teko_ConfigDefs.hpp"
31 namespace TpetraHelpers {
33 class BasicMappingStrategy :
public MappingStrategy {
47 BasicMappingStrategy(
const Teuchos::RCP<
const Tpetra::Map<LO, GO, NT> >& rMap,
48 const Teuchos::RCP<
const Tpetra::Map<LO, GO, NT> >& dMap,
49 const Teuchos::Comm<Thyra::Ordinal>& comm);
63 virtual void copyTpetraIntoThyra(
const Tpetra::MultiVector<ST, LO, GO, NT>& tpetra_X,
64 const Teuchos::Ptr<Thyra::MultiVectorBase<ST> >& thyra_X)
const;
75 virtual void copyThyraIntoTpetra(
const Teuchos::RCP<
const Thyra::MultiVectorBase<ST> >& thyra_Y,
76 Tpetra::MultiVector<ST, LO, GO, NT>& tpetra_Y)
const;
86 virtual const Teuchos::RCP<const Tpetra::Map<LO, GO, NT> > domainMap()
const {
97 virtual const Teuchos::RCP<const Tpetra::Map<LO, GO, NT> > rangeMap()
const {
return rangeMap_; }
103 virtual std::string toString()
const {
return std::string(
"BasicMappingStrategy"); }
112 Teuchos::RCP<const Tpetra::Map<LO, GO, NT> > domainMap_;
113 Teuchos::RCP<const Tpetra::Map<LO, GO, NT> > rangeMap_;
virtual void copyThyraIntoTpetra(const RCP< const Thyra::MultiVectorBase< ST > > &thyraX, Tpetra::MultiVector< ST, LO, GO, NT > &tpetraX) const =0
Copy an Thyra::MultiVectorBase into a Epetra_MultiVector.