43 #ifndef __Panzer_BlockedVector_ReadOnly_GlobalEvaluationData_hpp__
44 #define __Panzer_BlockedVector_ReadOnly_GlobalEvaluationData_hpp__
253 std::vector<Teuchos::RCP<ReadOnlyVector_GlobalEvaluationData>>
271 #endif // __Panzer_BlockedVector_ReadOnly_GlobalEvaluationData_hpp__
Teuchos::RCP< const Thyra::VectorBase< double > > ownedVector_
The owned vector.
Teuchos::RCP< ReadOnlyVector_GlobalEvaluationData > getGEDBlock(int i)
Get the i-th block (non const version).
Teuchos::RCP< const ReadOnlyVector_GlobalEvaluationData > getGEDBlock(int i) const
Get the i-th block (const version).
bool requiresDirichletAdjustment() const
Determine if a Dirichlet adjustment is necessary.
BlockedVector_ReadOnly_GlobalEvaluationData()
Default Constructor.
std::vector< Teuchos::RCP< ReadOnlyVector_GlobalEvaluationData > > gedBlocks_
A vector of the GlobalEvaluationData blocks.
virtual ~BlockedVector_ReadOnly_GlobalEvaluationData()
Destructor.
size_t getBlockCount() const
How many blocks do we have?
virtual void initializeData()
Initialize internal data for communication.
This class encapsulates the needs of a gather operation to do a halo exchange for blocked vectors...
virtual void globalToGhost(int mem)
Communicate the owned data to the ghosted vector.
virtual Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const
Get the ghosted vector.
Teuchos::RCP< const Thyra::DefaultProductVectorSpace< double > > ghostedSpace_
The vector space corresponding to the ghosted vector.
virtual Teuchos::RCP< const Thyra::VectorBase< double > > getOwnedVector() const
Get the owned vector.
virtual void setOwnedVector(const Teuchos::RCP< const Thyra::VectorBase< double >> &ownedVector)
Set the owned vector.
bool isInitialized_
A flag indicating whether or not the object has been initialized.
void initialize(const Teuchos::RCP< const Thyra::VectorSpaceBase< double >> &ghostedSpace, const Teuchos::RCP< const Thyra::VectorSpaceBase< double >> &ownedSpace, const std::vector< Teuchos::RCP< ReadOnlyVector_GlobalEvaluationData >> &gedBlocks)
Initialize this object using the sub-GlobalEvaluationData objects.
virtual bool isInitialized() const
Is this object initialized?