47 #ifndef __Teko_TpetraBasicMappingStrategy_hpp__
48 #define __Teko_TpetraBasicMappingStrategy_hpp__
54 #include "Teuchos_RCP.hpp"
57 #include "Thyra_MultiVectorBase.hpp"
60 #include "Tpetra_Map.hpp"
61 #include "Tpetra_MultiVector.hpp"
64 #include "Teko_TpetraOperatorWrapper.hpp"
65 #include "Teko_ConfigDefs.hpp"
68 namespace TpetraHelpers {
70 class BasicMappingStrategy :
public MappingStrategy {
84 BasicMappingStrategy(
const Teuchos::RCP<
const Tpetra::Map<LO,GO,NT> > & rMap,
85 const Teuchos::RCP<
const Tpetra::Map<LO,GO,NT> > & dMap,
const Teuchos::Comm<Thyra::Ordinal> & comm);
99 virtual void copyTpetraIntoThyra(
const Tpetra::MultiVector<ST,LO,GO,NT>& tpetra_X,
100 const Teuchos::Ptr<Thyra::MultiVectorBase<ST> > & thyra_X)
const;
111 virtual void copyThyraIntoTpetra(
const Teuchos::RCP<
const Thyra::MultiVectorBase<ST> > & thyra_Y,
112 Tpetra::MultiVector<ST,LO,GO,NT>& tpetra_Y)
const;
122 virtual const Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > domainMap()
const
123 {
return domainMap_; }
132 virtual const Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > rangeMap()
const
133 {
return rangeMap_; }
139 virtual std::string toString()
const
140 {
return std::string(
"BasicMappingStrategy"); }
149 Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > domainMap_;
150 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.