Panzer Version of the Day
|
This class provides a boundary exchange communication mechanism for vectors. More...
#include <Panzer_EpetraVector_Write_GlobalEvaluationData.hpp>
Public Member Functions | |
EpetraVector_Write_GlobalEvaluationData () | |
Default Constructor. | |
EpetraVector_Write_GlobalEvaluationData (const EpetraVector_Write_GlobalEvaluationData &src) | |
Copy Constructor. | |
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. | |
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. | |
virtual void | ghostToGlobal (int mem) |
Communicate the ghosted data to the owned vector. | |
virtual void | initializeData () |
Clear out the ghosted vector. // JMG: Is this right? | |
virtual bool | requiresDirichletAdjustment () const |
Determine if a Dirichlet adjustment is necessary. | |
void | setOwnedVector_Epetra (const Teuchos::RCP< Epetra_Vector > &ownedVector) |
Set the owned vector (Epetra version). | |
Teuchos::RCP< Epetra_Vector > | getGhostedVector_Epetra () const |
Get the ghosted vector (Epetra version). | |
void | setOwnedVector (const Teuchos::RCP< Thyra::VectorBase< double > > &ownedVector) |
Set the owned vector (Thyra version). | |
Teuchos::RCP< Thyra::VectorBase< double > > | getOwnedVector () const |
Get the owned vector (Thyra version). | |
Teuchos::RCP< Thyra::VectorBase< double > > | getGhostedVector () const |
Get the ghosted vector (Thyra version). | |
virtual bool | isInitialized () const |
Is this object initialized? | |
void | print (std::ostream &os) const |
Print the object. | |
![]() | |
WriteVector_GlobalEvaluationData () | |
Default constructor, set combine mode to sum right away. | |
virtual | ~WriteVector_GlobalEvaluationData () |
Virtual d. | |
void | setCombineMode (CombineMode cm) |
Allow the user to set the combine mode (at any time) | |
CombineMode | getCombineMode () const |
Get the combine mode, to be used by sub classes. | |
virtual bool | isInitialized () const =0 |
Is this object initialized. | |
virtual void | globalToGhost (int) |
virtual void | ghostToGlobal (int mem)=0 |
virtual void | setOwnedVector (const Teuchos::RCP< Thyra::VectorBase< double > > &ownedVector)=0 |
Set the owned vector. | |
virtual Teuchos::RCP< Thyra::VectorBase< double > > | getOwnedVector () const =0 |
Get the owned vector. | |
virtual Teuchos::RCP< Thyra::VectorBase< double > > | getGhostedVector () const =0 |
Get the ghosted vector. | |
![]() | |
virtual | ~GlobalEvaluationData ()=0 |
virtual void | ghostToGlobal (int mem)=0 |
virtual void | globalToGhost (int mem)=0 |
virtual bool | requiresDirichletAdjustment () const =0 |
virtual void | initializeData ()=0 |
virtual void | print (std::ostream &os) const |
Diagnostic function for determinning what's in this object. | |
Private Attributes | |
bool | isInitialized_ |
A flag indicating whether or not the object has been initialized. | |
Teuchos::RCP< const Epetra_Map > | ghostedMap_ |
The map corresponding to the ghosted vector. | |
Teuchos::RCP< const Epetra_Map > | ownedMap_ |
The map corresponding to the owned vector. | |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ghostedSpace_ |
The vector space corresponding to the ghosted vector. | |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ownedSpace_ |
The vector space corresponding to the owned vector. | |
Teuchos::RCP< const Epetra_Export > | exporter_ |
The exporter used to communicate between the owned and ghosted vectors. | |
Teuchos::RCP< Epetra_Vector > | ghostedVector_ |
The ghosted vector. | |
Teuchos::RCP< Thyra::VectorBase< double > > | ownedVector_ |
The owned vector. | |
Additional Inherited Members | |
![]() | |
enum | CombineMode { CM_Sum , CM_Max , CM_Min , CM_Insert } |
when you gho from ghost to global, combine with a particular mode More... | |
This class provides a boundary exchange communication mechanism for vectors.
Definition at line 76 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
inline |
Default Constructor.
Definition at line 85 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
inline |
Copy Constructor.
[in] | src | The object to be copied. |
Definition at line 96 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
inline |
Initializing Constructor.
Initialize this object with some Epetra communication objects. This method must be called before an object of this type can be used.
[in] | exporter | Exporter for doing communication from the owned to the ghosted vector. |
[in] | ghostedMap | Map describing the ghosted vector. |
[in] | ownedMap | Map describing the owned vector. |
Definition at line 115 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
void panzer::EpetraVector_Write_GlobalEvaluationData::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.
This method must be called before an object of this type can be used.
[in] | exporter | Exporter for doing communication from the owned to the ghosted vector. |
[in] | ghostedMap | Map describing the ghosted vector. |
[in] | ownedMap | Map describing the owned vector. |
Definition at line 71 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Communicate the ghosted data to the owned vector.
For this class, this method does the halo exchange for the vector.
[in] | mem | Not needed for this class, but part of the GlobalEvaluationData interface. |
Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 108 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Clear out the ghosted vector. // JMG: Is this right?
Implements panzer::GlobalEvaluationData.
Definition at line 155 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
inlinevirtual |
Determine if a Dirichlet adjustment is necessary.
Implements panzer::GlobalEvaluationData.
Definition at line 166 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
void panzer::EpetraVector_Write_GlobalEvaluationData::setOwnedVector_Epetra | ( | const Teuchos::RCP< Epetra_Vector > & | ownedVector | ) |
Set the owned vector (Epetra
version).
[in] | ownedVector | An Epetra_Vector that you would like to set as the owned vector. |
Definition at line 172 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
Teuchos::RCP< Epetra_Vector > panzer::EpetraVector_Write_GlobalEvaluationData::getGhostedVector_Epetra | ( | ) | const |
Get the ghosted vector (Epetra
version).
Epetra_Vector
. Definition at line 192 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Set the owned vector (Thyra
version).
[in] | ownedVector | A Thyra::VectorBase<double> that you would like to set as the owned vector. |
Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 211 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Get the owned vector (Thyra
version).
Thyra::VectorBase<double>
. Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 230 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Get the ghosted vector (Thyra
version).
Thyra::VectorBase<double>
. Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 246 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
inlinevirtual |
Is this object initialized?
Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 221 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
virtual |
Print the object.
This is a diagnostic function for debugging purposes.
[in,out] | os | The output stream to which the data should be printed. |
Reimplemented from panzer::GlobalEvaluationData.
Definition at line 266 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
private |
A flag indicating whether or not the object has been initialized.
Definition at line 244 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the ghosted vector.
Definition at line 249 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the owned vector.
Definition at line 254 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the ghosted vector.
Definition at line 259 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the owned vector.
Definition at line 264 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The exporter used to communicate between the owned and ghosted vectors.
Definition at line 270 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The ghosted vector.
Definition at line 275 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The owned vector.
Definition at line 280 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.