11 #ifndef __Panzer_ReadOnlyVector_GlobalEvaluationData_hpp__
12 #define __Panzer_ReadOnlyVector_GlobalEvaluationData_hpp__
15 #include "PanzerDiscFE_config.hpp"
16 #ifdef PANZER_HAVE_EPETRA_STACK
26 #include "Thyra_VectorBase.hpp"
60 #ifdef PANZER_HAVE_EPETRA_STACK
77 if (lid < static_cast<int>(ownedView_.extent(0)))
78 return ownedView_(lid);
80 return ghostedView_(lid - ownedView_.extent(0));
102 #endif // __Panzer_ReadOnlyVector_GlobalEvaluationData_hpp__
virtual void ghostToGlobal(int)
virtual bool isInitialized() const =0
Is this object initialized.
virtual void globalToGhost(int mem)=0
virtual Teuchos::RCP< const Thyra::VectorBase< double > > getOwnedVector() const =0
Get the owned vector.
virtual Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const =0
Get the ghosted vector.
virtual ~ReadOnlyVector_GlobalEvaluationData()
Virtual d.
virtual void setOwnedVector(const Teuchos::RCP< const Thyra::VectorBase< double > > &ownedVector)=0
Set the owned vector.