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. More... | |
EpetraVector_Write_GlobalEvaluationData (const EpetraVector_Write_GlobalEvaluationData &src) | |
Copy Constructor. More... | |
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. More... | |
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. More... | |
virtual void | ghostToGlobal (int mem) |
Communicate the ghosted data to the owned vector. More... | |
virtual void | initializeData () |
Clear out the ghosted vector. // JMG: Is this right? More... | |
virtual bool | requiresDirichletAdjustment () const |
Determine if a Dirichlet adjustment is necessary. More... | |
void | setOwnedVector_Epetra (const Teuchos::RCP< Epetra_Vector > &ownedVector) |
Set the owned vector (Epetra version). More... | |
Teuchos::RCP< Epetra_Vector > | getGhostedVector_Epetra () const |
Get the ghosted vector (Epetra version). More... | |
void | setOwnedVector (const Teuchos::RCP< Thyra::VectorBase< double >> &ownedVector) |
Set the owned vector (Thyra version). More... | |
Teuchos::RCP < Thyra::VectorBase< double > > | getOwnedVector () const |
Get the owned vector (Thyra version). More... | |
Teuchos::RCP < Thyra::VectorBase< double > > | getGhostedVector () const |
Get the ghosted vector (Thyra version). More... | |
virtual bool | isInitialized () const |
Is this object initialized? More... | |
void | print (std::ostream &os) const |
Print the object. More... | |
Public Member Functions inherited from panzer::WriteVector_GlobalEvaluationData | |
WriteVector_GlobalEvaluationData () | |
Default constructor, set combine mode to sum right away. More... | |
virtual | ~WriteVector_GlobalEvaluationData () |
Virtual d. More... | |
void | setCombineMode (CombineMode cm) |
Allow the user to set the combine mode (at any time) More... | |
CombineMode | getCombineMode () const |
Get the combine mode, to be used by sub classes. More... | |
virtual void | globalToGhost (int) |
virtual void | setOwnedVector (const Teuchos::RCP< Thyra::VectorBase< double > > &ownedVector)=0 |
Set the owned vector. More... | |
Public Member Functions inherited from panzer::GlobalEvaluationData | |
virtual | ~GlobalEvaluationData ()=0 |
Private Attributes | |
bool | isInitialized_ |
A flag indicating whether or not the object has been initialized. More... | |
Teuchos::RCP< const Epetra_Map > | ghostedMap_ |
The map corresponding to the ghosted vector. More... | |
Teuchos::RCP< const Epetra_Map > | ownedMap_ |
The map corresponding to the owned vector. More... | |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ghostedSpace_ |
The vector space corresponding to the ghosted vector. More... | |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ownedSpace_ |
The vector space corresponding to the owned vector. More... | |
Teuchos::RCP< const Epetra_Export > | exporter_ |
The exporter used to communicate between the owned and ghosted vectors. More... | |
Teuchos::RCP< Epetra_Vector > | ghostedVector_ |
The ghosted vector. More... | |
Teuchos::RCP < Thyra::VectorBase< double > > | ownedVector_ |
The owned vector. More... | |
Additional Inherited Members | |
Public Types inherited from panzer::WriteVector_GlobalEvaluationData | |
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 44 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
inline |
Default Constructor.
Definition at line 53 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
inline |
Copy Constructor.
[in] | src | The object to be copied. |
Definition at line 64 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 83 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 40 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 77 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Clear out the ghosted vector. // JMG: Is this right?
Implements panzer::GlobalEvaluationData.
Definition at line 124 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
inlinevirtual |
Determine if a Dirichlet adjustment is necessary.
Implements panzer::GlobalEvaluationData.
Definition at line 134 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 141 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 161 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
void panzer::EpetraVector_Write_GlobalEvaluationData::setOwnedVector | ( | const Teuchos::RCP< Thyra::VectorBase< double >> & | ownedVector | ) |
Set the owned vector (Thyra
version).
[in] | ownedVector | A Thyra::VectorBase<double> that you would like to set as the owned vector. |
Definition at line 180 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Get the owned vector (Thyra
version).
Thyra::VectorBase<double>
. Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 199 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
virtual |
Get the ghosted vector (Thyra
version).
Thyra::VectorBase<double>
. Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 215 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
inlinevirtual |
Is this object initialized?
Implements panzer::WriteVector_GlobalEvaluationData.
Definition at line 189 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 235 of file Panzer_EpetraVector_Write_GlobalEvaluationData.cpp.
|
private |
A flag indicating whether or not the object has been initialized.
Definition at line 212 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the ghosted vector.
Definition at line 217 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the owned vector.
Definition at line 222 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the ghosted vector.
Definition at line 227 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the owned vector.
Definition at line 232 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The exporter used to communicate between the owned and ghosted vectors.
Definition at line 238 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The ghosted vector.
Definition at line 243 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.
|
private |
The owned vector.
Definition at line 248 of file Panzer_EpetraVector_Write_GlobalEvaluationData.hpp.