Panzer
Version of the Day
|
#include <Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp>
Public Types | |
typedef Tpetra::Vector < ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT > | VectorType |
typedef Tpetra::Map < LocalOrdinalT, GlobalOrdinalT, NodeT > | MapType |
typedef Tpetra::Import < LocalOrdinalT, GlobalOrdinalT, NodeT > | ImportType |
Private Types | |
typedef std::pair< std::vector < GlobalOrdinalT >, double > | FilteredGlobalPair |
typedef std::pair< std::vector < LocalOrdinalT >, double > | FilteredLocalPair |
Private Attributes | |
bool | isInitialized_ |
Teuchos::RCP< const MapType > | ghostedMap_ |
Teuchos::RCP< const MapType > | ownedMap_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ghostedSpace_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | ownedSpace_ |
Teuchos::RCP< const ImportType > | importer_ |
Teuchos::RCP< VectorType > | ghostedVector_ |
Teuchos::RCP< const VectorType > | ownedVector_ |
std::vector< FilteredGlobalPair > | globalFilteredPairs_ |
std::vector< FilteredLocalPair > | 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 33 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
typedef Tpetra::Vector<ScalarT,LocalOrdinalT,GlobalOrdinalT,NodeT> panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::VectorType |
Definition at line 35 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
typedef Tpetra::Map<LocalOrdinalT,GlobalOrdinalT,NodeT> panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::MapType |
Definition at line 36 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
typedef Tpetra::Import<LocalOrdinalT,GlobalOrdinalT,NodeT> panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::ImportType |
Definition at line 37 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 131 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 132 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Default constructor.
Definition at line 40 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Definition at line 43 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Initialize this object with some Tpetra 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 54 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
void panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::useConstantValues | ( | const std::vector< GlobalOrdinalT > & | 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 crossed processor is made. So its up to the user to be consistent.
Definition at line 23 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
void panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::initialize | ( | const Teuchos::RCP< const ImportType > & | importer, |
const Teuchos::RCP< const MapType > & | ghostedMap, | ||
const Teuchos::RCP< const MapType > & | ownedMap | ||
) |
Initialize this object with some Tpetra 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 38 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
For this class, this method does the halo exchange for the vector.
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 81 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Clear out the ghosted vector.
Implements panzer::GlobalEvaluationData.
Definition at line 98 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
inlinevirtual |
For this class this method does nothing.
Reimplemented from panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 89 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inlinevirtual |
Nothing to do (its read only)
Implements panzer::GlobalEvaluationData.
Definition at line 92 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
void panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::setOwnedVector_Tpetra | ( | const Teuchos::RCP< const VectorType > & | ownedVector | ) |
Set the owned vector (Tpetra version)
Definition at line 120 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
Teuchos::RCP< const typename TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::VectorType > panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::getOwnedVector_Tpetra | ( | ) | const |
Get the owned vector (Tpetra version)
Definition at line 129 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
Teuchos::RCP< typename TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::VectorType > panzer::TpetraVector_ReadOnly_GlobalEvaluationData< ScalarT, LocalOrdinalT, GlobalOrdinalT, NodeT >::getGhostedVector_Tpetra | ( | ) | const |
Get the ghosted vector (Tpetra version)
Definition at line 138 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Set the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 149 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Get the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 160 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Get the ghosted vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 170 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
inlinevirtual |
Is this object initialized.
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 113 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
virtual |
Diagnostic function.
Reimplemented from panzer::GlobalEvaluationData.
Definition at line 181 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
private |
Definition at line 119 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 121 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 122 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 124 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 125 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 127 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 128 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 129 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 133 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 134 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.