#include <Panzer_GlobalIndexer_Utilities.hpp>
|
| ArrayToFieldVector (const Teuchos::RCP< const GlobalIndexer > &ugi) |
|
template<typename ScalarT , typename ArrayT > |
Teuchos::RCP< Tpetra::MultiVector< ScalarT, int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > | getGhostedDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const |
|
template<typename ScalarT , typename ArrayT > |
Teuchos::RCP< Tpetra::MultiVector< ScalarT, int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > | getDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const |
|
Teuchos::RCP< const Tpetra::Map< int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > | getFieldMap (const std::string &fieldName) const |
|
Teuchos::RCP< const Tpetra::Map< int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > | getFieldMap (int fieldNum) const |
|
This class assists in mapping arrays of field data to field vectors.
Definition at line 288 of file Panzer_GlobalIndexer_Utilities.hpp.
◆ IntVector
◆ Map
◆ ArrayToFieldVector() [1/3]
panzer::ArrayToFieldVector::ArrayToFieldVector |
( |
const Teuchos::RCP< const GlobalIndexer > & | ugi | ) |
|
◆ ArrayToFieldVector() [2/3]
panzer::ArrayToFieldVector::ArrayToFieldVector |
( |
| ) |
|
|
private |
Maps for each field (as needed)
◆ ArrayToFieldVector() [3/3]
◆ getGhostedDataVector()
template<typename ScalarT , typename ArrayT >
Teuchos::RCP< Tpetra::MultiVector< ScalarT, int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > panzer::ArrayToFieldVector::getGhostedDataVector |
( |
const std::string & | fieldName, |
|
|
const std::map< std::string, ArrayT > & | data ) const |
Get a Tpetra vector containing the data ordered according to the ordering from UGI::getOwnedAndGhostedIndices
.
- Parameters
-
[in] | fieldName | Name of field this data is from |
[in] | data | Array of data |
- Returns
- Returns a vector populated with the data. This vector is related to the
UGI::getOwnedAndGhostedIndices
.
Definition at line 122 of file Panzer_GlobalIndexer_Utilities_impl.hpp.
◆ getDataVector()
template<typename ScalarT , typename ArrayT >
Teuchos::RCP< Tpetra::MultiVector< ScalarT, int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > panzer::ArrayToFieldVector::getDataVector |
( |
const std::string & | fieldName, |
|
|
const std::map< std::string, ArrayT > & | data ) const |
Get a Tpetra vector containing the data ordered according to the ordering from UGI::getOwnedIndices
.
- Parameters
-
[in] | fieldName | Name of field this data is from |
[in] | data | Array of data |
- Returns
- Returns a vector populated with the data. This vector is related to the
UGI::getOwnedIndices
.
Definition at line 193 of file Panzer_GlobalIndexer_Utilities_impl.hpp.
◆ getFieldMap() [1/2]
Teuchos::RCP< const Tpetra::Map< int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > panzer::ArrayToFieldVector::getFieldMap |
( |
const std::string & | fieldName | ) |
const |
Build a map that contains only global IDs associated with a particular field. This serves to go from a unique vector of all fields, to a vector containing the uniquely owned global ids for a single field.
Definition at line 335 of file Panzer_GlobalIndexer_Utilities.cpp.
◆ getFieldMap() [2/2]
Teuchos::RCP< const Tpetra::Map< int, panzer::GlobalOrdinal, panzer::TpetraNodeType > > panzer::ArrayToFieldVector::getFieldMap |
( |
int | fieldNum | ) |
const |
Build a map that contains only global IDs associated with a particular field. This serves to go from a unique vector of all fields, to a vector containing the uniquely owned global ids for a single field.
Definition at line 341 of file Panzer_GlobalIndexer_Utilities.cpp.
◆ buildFieldVector()
void panzer::ArrayToFieldVector::buildFieldVector |
( |
const Tpetra::Vector< int, int, panzer::GlobalOrdinal, panzer::TpetraNodeType > & | source | ) |
const |
|
protected |
◆ ugi_
Teuchos::RCP<const GlobalIndexer> panzer::ArrayToFieldVector::ugi_ |
|
protected |
◆ gh_reducedFieldVector_
Teuchos::RCP<const IntVector> panzer::ArrayToFieldVector::gh_reducedFieldVector_ |
|
protected |
◆ gh_fieldVector_
Teuchos::RCP<const IntVector> panzer::ArrayToFieldVector::gh_fieldVector_ |
|
protected |
◆ gh_reducedFieldMaps_
std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVector::gh_reducedFieldMaps_ |
|
mutableprotected |
◆ gh_fieldMaps_
std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVector::gh_fieldMaps_ |
|
mutableprotected |
◆ fieldVector_
Teuchos::RCP<const IntVector> panzer::ArrayToFieldVector::fieldVector_ |
|
mutableprotected |
◆ fieldMaps_
std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVector::fieldMaps_ |
|
mutableprotected |
The documentation for this class was generated from the following files: