11 #ifndef __Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_hpp__
12 #define __Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_hpp__
14 #include "Tpetra_Import.hpp"
15 #include "Tpetra_Vector.hpp"
16 #include "Tpetra_Map.hpp"
20 #include "Thyra_VectorSpaceBase.hpp"
21 #include "Thyra_VectorBase.hpp"
31 template <
typename ScalarT,
typename LocalOrdinalT,
typename GlobalOrdinalT,
35 typedef Tpetra::Vector<ScalarT,LocalOrdinalT,GlobalOrdinalT,NodeT>
VectorType;
36 typedef Tpetra::Map<LocalOrdinalT,GlobalOrdinalT,NodeT>
MapType;
37 typedef Tpetra::Import<LocalOrdinalT,GlobalOrdinalT,NodeT>
ImportType;
116 void print(std::ostream & os)
const;
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ghostedSpace_
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ownedSpace_
virtual void ghostToGlobal(int)
For this class this method does nothing.
Teuchos::RCP< VectorType > ghostedVector_
Teuchos::RCP< const MapType > ghostedMap_
Tpetra::Vector< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT > VectorType
virtual void initializeData()
Clear out the ghosted vector.
void setOwnedVector(const Teuchos::RCP< const Thyra::VectorBase< double > > &ownedVector)
Set the owned vector (Thyra version)
virtual bool requiresDirichletAdjustment() const
Nothing to do (its read only)
TpetraVector_ReadOnly_GlobalEvaluationData(const TpetraVector_ReadOnly_GlobalEvaluationData &src)
void useConstantValues(const std::vector< GlobalOrdinalT > &indices, double value)
void print(std::ostream &os) const
Diagnostic function.
Tpetra::Map< LocalOrdinalT, GlobalOrdinalT, NodeT > MapType
Teuchos::RCP< const Thyra::VectorBase< double > > getOwnedVector() const
Get the owned vector (Thyra version)
std::vector< FilteredLocalPair > filteredPairs_
bool isInitialized() const
Is this object initialized.
std::pair< std::vector< LocalOrdinalT >, double > FilteredLocalPair
Teuchos::RCP< const VectorType > ownedVector_
TpetraVector_ReadOnly_GlobalEvaluationData(const Teuchos::RCP< const ImportType > &importer, const Teuchos::RCP< const MapType > &ghostedMap, const Teuchos::RCP< const MapType > &ownedMap)
virtual void globalToGhost(int mem)
Teuchos::RCP< const MapType > ownedMap_
Tpetra::Import< LocalOrdinalT, GlobalOrdinalT, NodeT > ImportType
void setOwnedVector_Tpetra(const Teuchos::RCP< const VectorType > &ownedVector)
Set the owned vector (Tpetra version)
TpetraVector_ReadOnly_GlobalEvaluationData()
Default constructor.
Teuchos::RCP< const VectorType > getOwnedVector_Tpetra() const
Get the owned vector (Tpetra version)
Teuchos::RCP< VectorType > getGhostedVector_Tpetra() const
Get the ghosted vector (Tpetra version)
std::vector< FilteredGlobalPair > globalFilteredPairs_
std::pair< std::vector< GlobalOrdinalT >, double > FilteredGlobalPair
Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const
Get the ghosted vector (Thyra version)
Tpetra::KokkosCompat::KokkosDeviceWrapperNode< PHX::Device > TpetraNodeType
void initialize(const Teuchos::RCP< const ImportType > &importer, const Teuchos::RCP< const MapType > &ghostedMap, const Teuchos::RCP< const MapType > &ownedMap)
Teuchos::RCP< const ImportType > importer_