#include <Panzer_GlobalIndexer_EpetraUtilities.hpp>
This class assists in mapping arrays of field data to field vectors.
Definition at line 109 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
◆ IntVector
◆ MultiVector
◆ Map
◆ ArrayToFieldVectorEpetra() [1/3]
| panzer::ArrayToFieldVectorEpetra::ArrayToFieldVectorEpetra |
( |
const Teuchos::RCP< const GlobalIndexer > & |
ugi | ) |
|
Construct information for the unique global indexer. Notice that this requires global communication.
◆ ArrayToFieldVectorEpetra() [2/3]
| panzer::ArrayToFieldVectorEpetra::ArrayToFieldVectorEpetra |
( |
| ) |
|
|
private |
Maps for each field (as needed)
◆ ArrayToFieldVectorEpetra() [3/3]
◆ getGhostedDataVector()
template<typename ScalarT , typename ArrayT >
| Teuchos::RCP< Epetra_MultiVector > panzer::ArrayToFieldVectorEpetra::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 93 of file Panzer_GlobalIndexer_EpetraUtilities_impl.hpp.
◆ getDataVector()
template<typename ScalarT , typename ArrayT >
| Teuchos::RCP< Epetra_MultiVector > panzer::ArrayToFieldVectorEpetra::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 164 of file Panzer_GlobalIndexer_EpetraUtilities_impl.hpp.
◆ getFieldMap() [1/2]
| Teuchos::RCP< const Epetra_Map > panzer::ArrayToFieldVectorEpetra::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.
◆ getFieldMap() [2/2]
| Teuchos::RCP< const Epetra_Map > panzer::ArrayToFieldVectorEpetra::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.
◆ buildFieldVector()
| void panzer::ArrayToFieldVectorEpetra::buildFieldVector |
( |
const Epetra_IntVector & |
source | ) |
const |
|
protected |
build unghosted field vector from ghosted field vector
◆ ugi_
| Teuchos::RCP<const GlobalIndexer> panzer::ArrayToFieldVectorEpetra::ugi_ |
|
protected |
◆ gh_reducedFieldVector_
| Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::gh_reducedFieldVector_ |
|
protected |
◆ gh_fieldVector_
| Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::gh_fieldVector_ |
|
protected |
◆ gh_reducedFieldMaps_
| std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::gh_reducedFieldMaps_ |
|
mutableprotected |
◆ gh_fieldMaps_
| std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::gh_fieldMaps_ |
|
mutableprotected |
◆ fieldVector_
| Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::fieldVector_ |
|
mutableprotected |
◆ fieldMaps_
| std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::fieldMaps_ |
|
mutableprotected |
The documentation for this class was generated from the following files: