47 #ifndef __Teko_TpetraReorderedMappingStrategy_hpp__
48 #define __Teko_TpetraReorderedMappingStrategy_hpp__
54 #include "Teuchos_RCP.hpp"
57 #include "Thyra_MultiVectorBase.hpp"
58 #include "Thyra_LinearOpBase.hpp"
61 #include "Tpetra_Map.hpp"
62 #include "Tpetra_MultiVector.hpp"
63 #include "Tpetra_Import.hpp"
64 #include "Tpetra_Export.hpp"
65 #include "Tpetra_CrsMatrix.hpp"
68 #include "Teko_BlockedReordering.hpp"
69 #include "Teko_TpetraOperatorWrapper.hpp"
70 #include "Teko_ConfigDefs.hpp"
73 namespace TpetraHelpers {
75 class TpetraReorderedMappingStrategy :
public MappingStrategy {
87 TpetraReorderedMappingStrategy(
const BlockReorderManager & brm,
const Teuchos::RCP<const MappingStrategy> & map);
100 virtual void copyTpetraIntoThyra(
const Tpetra::MultiVector<ST,LO,GO,NT>& tpetra_X,
101 const Teuchos::Ptr<Thyra::MultiVectorBase<ST> > & thyra_X)
const;
110 virtual void copyThyraIntoTpetra(
const Teuchos::RCP<
const Thyra::MultiVectorBase<ST> > & thyra_Y,
111 Tpetra::MultiVector<ST,LO,GO,NT>& tpetra_Y)
const;
120 virtual const Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > domainMap()
const
121 {
return domainMap_; }
130 virtual const Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > rangeMap()
const
131 {
return rangeMap_; }
137 virtual std::string toString()
const
138 {
return std::string(
"TpetraReorderedMappingStrategy"); }
143 virtual RCP<const MappingStrategy> GetPrimaryMapStrategy()
const
144 {
return mapStrategy_; }
151 Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > domainMap_;
152 Teuchos::RCP<const Tpetra::Map<LO,GO,NT> > rangeMap_;
157 const BlockReorderManager reorderManager_;
158 RCP<const MappingStrategy> mapStrategy_;
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.