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_ |
Additional Inherited Members | |
Protected Attributes inherited from panzer::ReadOnlyVector_GlobalEvaluationData | |
panzer::kokkos_utils::VectorToViewTraits < const Epetra_Vector >::View | ownedView_ |
The Kokkos::View of the owned vector. More... | |
panzer::kokkos_utils::VectorToViewTraits < Epetra_Vector >::View | ghostedView_ |
The Kokkos::View of the ghosted vector. More... | |
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 65 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 67 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 68 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 69 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 163 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 164 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Default constructor.
Definition at line 72 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inline |
Definition at line 75 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 86 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 55 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 70 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 113 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Clear out the ghosted vector.
Implements panzer::GlobalEvaluationData.
Definition at line 129 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
inlinevirtual |
For this class this method does nothing.
Reimplemented from panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 121 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
inlinevirtual |
Nothing to do (its read only)
Implements panzer::GlobalEvaluationData.
Definition at line 124 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 152 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 161 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 170 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Set the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 181 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Get the owned vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 192 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
virtual |
Get the ghosted vector (Thyra version)
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 202 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
inlinevirtual |
Is this object initialized.
Implements panzer::ReadOnlyVector_GlobalEvaluationData.
Definition at line 145 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
virtual |
Diagnostic function.
Reimplemented from panzer::GlobalEvaluationData.
Definition at line 213 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData_impl.hpp.
|
private |
Definition at line 151 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 153 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 154 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 156 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 157 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 159 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 160 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 161 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 165 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.
|
private |
Definition at line 166 of file Panzer_TpetraVector_ReadOnly_GlobalEvaluationData.hpp.