11#ifndef __Panzer_EpetraVector_Write_GlobalEvaluationData_hpp__
12#define __Panzer_EpetraVector_Write_GlobalEvaluationData_hpp__
21#include "Epetra_Export.h"
22#include "Epetra_Map.h"
23#include "Epetra_Vector.h"
29#include "Teuchos_RCP.hpp"
32#include "Thyra_VectorSpaceBase.hpp"
33#include "Thyra_VectorBase.hpp"
84 const Teuchos::RCP<const Epetra_Export>& exporter,
85 const Teuchos::RCP<const Epetra_Map>& ghostedMap,
86 const Teuchos::RCP<const Epetra_Map>& ownedMap)
106 const Teuchos::RCP<const Epetra_Export>& exporter,
107 const Teuchos::RCP<const Epetra_Map>& ghostedMap,
108 const Teuchos::RCP<const Epetra_Map>& ownedMap);
147 const Teuchos::RCP<Epetra_Vector>& ownedVector);
154 Teuchos::RCP<Epetra_Vector>
172 Teuchos::RCP<Thyra::VectorBase<double>>
180 Teuchos::RCP<Thyra::VectorBase<double>>
204 std::ostream& os)
const;
This class provides a boundary exchange communication mechanism for vectors.
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ownedSpace_
The vector space corresponding to the owned vector.
Teuchos::RCP< Thyra::VectorBase< double > > getGhostedVector() const
Get the ghosted vector (Thyra version).
Teuchos::RCP< const Epetra_Map > ghostedMap_
The map corresponding to the ghosted vector.
void initialize(const Teuchos::RCP< const Epetra_Export > &exporter, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap)
Initialize this object with some Epetra communication objects.
Teuchos::RCP< const Epetra_Export > exporter_
The exporter used to communicate between the owned and ghosted vectors.
virtual void ghostToGlobal(int mem)
Communicate the ghosted data to the owned vector.
void setOwnedVector(const Teuchos::RCP< Thyra::VectorBase< double > > &ownedVector)
Set the owned vector (Thyra version).
Teuchos::RCP< Epetra_Vector > getGhostedVector_Epetra() const
Get the ghosted vector (Epetra version).
EpetraVector_Write_GlobalEvaluationData()
Default Constructor.
virtual bool requiresDirichletAdjustment() const
Determine if a Dirichlet adjustment is necessary.
bool isInitialized_
A flag indicating whether or not the object has been initialized.
Teuchos::RCP< const Epetra_Map > ownedMap_
The map corresponding to the owned vector.
virtual void initializeData()
Clear out the ghosted vector. // JMG: Is this right?
Teuchos::RCP< Epetra_Vector > ghostedVector_
The ghosted vector.
void print(std::ostream &os) const
Print the object.
virtual bool isInitialized() const
Is this object initialized?
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > ghostedSpace_
The vector space corresponding to the ghosted vector.
Teuchos::RCP< Thyra::VectorBase< double > > ownedVector_
The owned vector.
EpetraVector_Write_GlobalEvaluationData(const Teuchos::RCP< const Epetra_Export > &exporter, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap)
Initializing Constructor.
EpetraVector_Write_GlobalEvaluationData(const EpetraVector_Write_GlobalEvaluationData &src)
Copy Constructor.
Teuchos::RCP< Thyra::VectorBase< double > > getOwnedVector() const
Get the owned vector (Thyra version).
void setOwnedVector_Epetra(const Teuchos::RCP< Epetra_Vector > &ownedVector)
Set the owned vector (Epetra version).