Panzer
Version of the Day
|
#include <Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp>
Public Member Functions | |
EpetraVector_ReadOnly_GlobalEvaluationData () | |
Default constructor. More... | |
EpetraVector_ReadOnly_GlobalEvaluationData (const EpetraVector_ReadOnly_GlobalEvaluationData &src) | |
EpetraVector_ReadOnly_GlobalEvaluationData (const Teuchos::RCP< const Epetra_Import > &importer, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap) | |
void | useConstantValues (const std::vector< int > &indices, double value) |
void | initialize (const Teuchos::RCP< const Epetra_Import > &importer, const Teuchos::RCP< const Epetra_Map > &ghostedMap, const Teuchos::RCP< const Epetra_Map > &ownedMap) |
virtual void | globalToGhost (int mem) |
virtual void | initializeData () |
Clear out the ghosted vector. More... | |
virtual void | ghostToGlobal (int mem) |
For this class this method does nothing. More... | |
virtual bool | requiresDirichletAdjustment () const |
Nothing to do (its read only) 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 |
Diagnostic function. More... | |
![]() | |
virtual | ~ReadOnlyVector_GlobalEvaluationData () |
Virtual d. More... | |
![]() | |
virtual | ~GlobalEvaluationData ()=0 |
Private Types | |
typedef std::pair< std::vector< int >, double > | FilteredPair |
Private Attributes | |
bool | isInitialized_ |
Teuchos::RCP< const Epetra_Map > | ghostedMap_ |
Teuchos::RCP< const Epetra_Map > | ownedMap_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ghostedSpace_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ownedSpace_ |
Teuchos::RCP< const Epetra_Import > | importer_ |
Teuchos::RCP< Epetra_Vector > | ghostedVector_ |
Teuchos::RCP< const Thyra::VectorBase< double > > | ownedVector_ |
std::vector< FilteredPair > | filteredPairs_ |
This class provides a boundary exchange communication mechanism for vectors. Not this provides a "read only" (RO) interface for parameters (so vectors are write protected).
Definition at line 63 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 159 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Default constructor.
Definition at line 67 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Definition at line 70 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
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 ghosted vector. |
Definition at line 81 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. Note that this is only useful for GIDs in the ghosted map that are not in the owned map.
This must be called before initialize. Also note that no attempt to synchronize these values a cross a processor is made. So its up to the user to be consistent.
Definition at line 16 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 ghosted vector. |
Definition at line 30 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
For this class, this method does the halo exchange for the vector.
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 67 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Clear out the ghosted vector.
Implements panzer::GlobalEvaluationData.
Definition at line 84 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
inlinevirtual |
For this class this method does nothing.
Reimplemented from panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 116 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inlinevirtual |
Nothing to do (its read only)
Implements panzer::GlobalEvaluationData.
Definition at line 119 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)
Definition at line 102 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
Teuchos::RCP< Epetra_Vector > panzer::EpetraVector_ReadOnly_GlobalEvaluationData::getGhostedVector_Epetra | ( | ) | const |
Get the ghosted vector (Epetra version)
Definition at line 110 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Set the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 120 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Get the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 136 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
virtual |
Get the ghosted vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 146 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
inlinevirtual |
Is this object initialized.
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 139 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
virtual |
Diagnostic function.
Reimplemented from panzer::GlobalEvaluationData.
Definition at line 156 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.cpp.
|
private |
Definition at line 145 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 147 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 148 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 150 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 151 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 153 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 154 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 157 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 160 of file Panzer_EpetraVector_ReadOnly_GlobalEvaluationData.hpp.