43 #ifndef __Panzer_WriteVector_GlobalEvaluationData_hpp__ 44 #define __Panzer_WriteVector_GlobalEvaluationData_hpp__ 47 #include "PanzerDiscFE_config.hpp" 48 #ifdef PANZER_HAVE_EPETRA_STACK 55 #include "Teuchos_RCP.hpp" 58 #include "Thyra_VectorBase.hpp" 100 virtual Teuchos::RCP<Thyra::VectorBase<double> >
getOwnedVector()
const = 0;
103 virtual Teuchos::RCP<Thyra::VectorBase<double> >
getGhostedVector()
const = 0;
105 #ifdef PANZER_HAVE_EPETRA_STACK 122 if (lid < static_cast<int>(ownedView_.extent(0)))
123 return ownedView_(lid);
125 return ghostedView_(lid - ownedView_.extent(0));
141 #endif // PANZER_HAVE_EPETRA_STACK 150 #endif // __Panzer_WriteVector_GlobalEvaluationData_hpp__ virtual Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const =0
Get the ghosted vector.
CombineMode getCombineMode() const
Get the combine mode, to be used by sub classes.
virtual ~WriteVector_GlobalEvaluationData()
Virtual d.
virtual void ghostToGlobal(int mem)=0
CombineMode
when you gho from ghost to global, combine with a particular mode
WriteVector_GlobalEvaluationData()
Default constructor, set combine mode to sum right away.
void setCombineMode(CombineMode cm)
Allow the user to set the combine mode (at any time)
virtual void setOwnedVector(const Teuchos::RCP< Thyra::VectorBase< double > > &ownedVector)=0
Set the owned vector.
virtual bool isInitialized() const =0
Is this object initialized.
virtual void globalToGhost(int)
virtual Teuchos::RCP< Thyra::VectorBase< double > > getOwnedVector() const =0
Get the owned vector.