43 #ifndef __Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_hpp__
44 #define __Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_hpp__
46 #include "Tpetra_Import.hpp"
47 #include "Tpetra_Vector.hpp"
48 #include "Tpetra_Map.hpp"
52 #include "Thyra_VectorSpaceBase.hpp"
53 #include "Thyra_VectorBase.hpp"
63 template <
typename ScalarT,
typename LocalOrdinalT,
typename GlobalOrdinalT,
67 typedef Tpetra::Vector<ScalarT,LocalOrdinalT,GlobalOrdinalT,NodeT>
VectorType;
68 typedef Tpetra::Map<LocalOrdinalT,GlobalOrdinalT,NodeT>
MapType;
69 typedef Tpetra::Import<LocalOrdinalT,GlobalOrdinalT,NodeT>
ImportType;
148 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_
Kokkos::Compat::KokkosDeviceWrapperNode< PHX::Device > TpetraNodeType
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)
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_