3 #include "Epetra_Import.h" 5 #include "Thyra_VectorBase.hpp" 6 #include "Thyra_LinearOpBase.hpp" 7 #include "Thyra_EpetraThyraWrappers.hpp" 8 #include "Thyra_get_Epetra_Operator.hpp" 19 "EpetraVector_ReadOnly_GED has been initialized, cannot call \"useConstantValues\"!");
48 std::vector<int>
lids;
50 for(std::size_t j=0;j<gids.size();j++) {
51 int lid = ghostedMap->LID(gids[j]);
70 "Owned vector has not been set, can't perform the halo exchange!");
87 "EpetraVector_ReadOnly_GED has not been initialized, cannot call \"initializeData\"!");
95 for(std::size_t j=0;j<
lids.size();j++)
158 const std::string tab =
" ";
160 os << tab <<
"EpetraVector_ReadOnly_GlobalEvaluationData\n"
std::pair< std::vector< int >, double > FilteredPair
void setOwnedVector(const Teuchos::RCP< const Thyra::VectorBase< double > > &ownedVector)
Set the owned vector (Thyra version)
Teuchos::RCP< const Epetra_Import > importer_
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void setOwnedVector_Epetra(const Teuchos::RCP< const Epetra_Vector > &ownedVector)
Set the owned vector (Epetra version)
virtual void globalToGhost(int mem)
void useConstantValues(const std::vector< int > &indices, double value)
Kokkos::View< const LO **, PHX::Device > lids
virtual void initializeData()
Clear out the ghosted vector.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< const Thyra::VectorBase< double > > getOwnedVector() const
Get the owned vector (Thyra version)
Teuchos::RCP< Epetra_Vector > getGhostedVector_Epetra() const
Get the ghosted vector (Epetra version)
void print(std::ostream &os) const
Diagnostic function.
Teuchos::RCP< Epetra_Vector > ghostedVector_
Teuchos::RCP< const Thyra::VectorBase< double > > ownedVector_
std::vector< FilteredPair > filteredPairs_
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ownedSpace_
Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const
Get the ghosted vector (Thyra version)
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ghostedSpace_
Teuchos::RCP< const Epetra_Map > ownedMap_
#define TEUCHOS_ASSERT(assertion_test)
Teuchos::RCP< const Epetra_Map > ghostedMap_
void initialize(const Teuchos::RCP< const Epetra_Import > &importer, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap)