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