Panzer
Version of the Day
|
This class provides a boundary exchange communication mechanism for vectors. More...
#include <Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp>
Public Member Functions | |
EpetraVector_ReadOnly_GlobalEvaluationData () | |
Default Constructor. More... | |
EpetraVector_ReadOnly_GlobalEvaluationData (const EpetraVector_ReadOnly_GlobalEvaluationData &src) | |
Copy Constructor. More... | |
EpetraVector_ReadOnly_GlobalEvaluationData (const Teuchos::RCP< const Epetra_Import > &importer, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap) | |
Initializing Constructor. More... | |
void | useConstantValues (const std::vector< int > &indices, double value) |
Choose a few GIDs and, instead of zeroing them out in the ghosted vector, set them to a specified value. More... | |
void | initialize (const Teuchos::RCP< const Epetra_Import > &importer, 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 | globalToGhost (int mem=0) |
Communicate the owned data to the ghosted vector. More... | |
virtual void | initializeData () |
Clear out the ghosted vector. More... | |
virtual void | ghostToGlobal (int mem=0) |
Communicate the ghosted data to the owned vector. More... | |
virtual bool | requiresDirichletAdjustment () const |
Determine if a Dirichlet adjustment is necessary. More... | |
void | setOwnedVector_Epetra (const Teuchos::RCP< const 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< const Thyra::VectorBase< double >> &ownedVector) |
Set the owned vector (Thyra version). More... | |
Teuchos::RCP< const 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... | |
bool | isInitialized () const |
Is this object initialized? More... | |
void | print (std::ostream &os) const |
Print the object. More... | |
Public Member Functions inherited from panzer::ReadOnlyVector_GlobalEvaluationData | |
virtual | ~ReadOnlyVector_GlobalEvaluationData () |
Virtual d. More... | |
virtual void | setOwnedVector (const Teuchos::RCP< const Thyra::VectorBase< double > > &ownedVector)=0 |
Set the owned vector. More... | |
Public Member Functions inherited from panzer::GlobalEvaluationData | |
virtual | ~GlobalEvaluationData ()=0 |
Private Types | |
typedef std::pair< std::vector < int >, double > | FilteredPair |
A list of global IDs (which will be translated to local IDs), paired with a value to be assigned in the ghostedVector_ . More... | |
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_Import > | importer_ |
The importer used to communicate between the owned and ghosted vectors. More... | |
Teuchos::RCP< Epetra_Vector > | ghostedVector_ |
The ghosted vector. More... | |
Teuchos::RCP< const Thyra::VectorBase< double > > | ownedVector_ |
The owned vector. More... | |
std::vector< FilteredPair > | filteredPairs_ |
The list of filtered pairs, used to initialize values on the ghostedVector_ . More... | |
This class provides a boundary exchange communication mechanism for vectors.
Definition at line 46 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
A list of global IDs (which will be translated to local IDs), paired with a value to be assigned in the ghostedVector_
.
Definition at line 288 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Default Constructor.
Definition at line 55 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Copy Constructor.
[in] | src | The object to be copied. |
Definition at line 66 of file Panzer_EpetraVector_ReadOnly_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] | importer | Importer 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 85 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
void panzer::EpetraVector_ReadOnly_GlobalEvaluationData::useConstantValues | ( | const std::vector< int > & | indices, |
double | value | ||
) |
Choose a few GIDs and, instead of zeroing them out in the ghosted vector, set them to a specified value.
initialize()
. [in] | indices | A std::vector of global IDs. |
[in] | value | The value to be assigned to the entries given by indices. |
Definition at line 39 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
void panzer::EpetraVector_ReadOnly_GlobalEvaluationData::initialize | ( | const Teuchos::RCP< const Epetra_Import > & | importer, |
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] | importer | Importer 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 62 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Communicate the owned data to the ghosted 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::ReadOnlyVector_GlobalEvaluationData.
Definition at line 119 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Clear out the ghosted vector.
Implements panzer::GlobalEvaluationData.
Definition at line 146 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Communicate the ghosted data to the owned vector.
For this class this method does nothing.
[in] | mem | Not needed for this class, but part of the GlobalEvaluationData interface. |
Reimplemented from panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 172 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
inlinevirtual |
Determine if a Dirichlet adjustment is necessary.
For this class, there's nothing to do because it's read-only.
Implements panzer::GlobalEvaluationData.
Definition at line 168 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
void panzer::EpetraVector_ReadOnly_GlobalEvaluationData::setOwnedVector_Epetra | ( | const Teuchos::RCP< const 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 184 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
Teuchos::RCP< Epetra_Vector > panzer::EpetraVector_ReadOnly_GlobalEvaluationData::getGhostedVector_Epetra | ( | ) | const |
Get the ghosted vector (Epetra
version).
Epetra_Vector
. Definition at line 204 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
void panzer::EpetraVector_ReadOnly_GlobalEvaluationData::setOwnedVector | ( | const Teuchos::RCP< const 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 223 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Get the owned vector (Thyra
version).
const Thyra::VectorBase<double>
. Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 242 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Get the ghosted vector (Thyra
version).
Thyra::VectorBase<double>
. Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 258 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
inlinevirtual |
Is this object initialized?
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 223 of file Panzer_EpetraVector_ReadOnly_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 278 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
private |
A flag indicating whether or not the object has been initialized.
Definition at line 246 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the ghosted vector.
Definition at line 251 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The map corresponding to the owned vector.
Definition at line 256 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the ghosted vector.
Definition at line 261 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The vector space corresponding to the owned vector.
Definition at line 266 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The importer used to communicate between the owned and ghosted vectors.
Definition at line 272 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The ghosted vector.
Definition at line 277 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The owned vector.
Definition at line 282 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
The list of filtered pairs, used to initialize values on the ghostedVector_
.
Definition at line 294 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.