43 #ifndef __Panzer_ReadOnlyVector_GlobalEvaluationData_hpp__
44 #define __Panzer_ReadOnlyVector_GlobalEvaluationData_hpp__
47 #include "PanzerDiscFE_config.hpp"
48 #ifdef PANZER_HAVE_EPETRA_STACK
58 #include "Thyra_VectorBase.hpp"
92 #ifdef PANZER_HAVE_EPETRA_STACK
107 const int& lid)
const
109 if (lid < static_cast<int>(ownedView_.extent(0)))
110 return ownedView_(lid);
112 return ghostedView_(lid - ownedView_.extent(0));
134 #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.