Panzer
Version of the Day
|
#include <Panzer_GlobalIndexer_EpetraUtilities.hpp>
Public Member Functions | |
ArrayToFieldVectorEpetra (const Teuchos::RCP< const GlobalIndexer > &ugi) | |
template<typename ScalarT , typename ArrayT > | |
Teuchos::RCP< Epetra_MultiVector > | getGhostedDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const |
template<typename ScalarT , typename ArrayT > | |
Teuchos::RCP< Epetra_MultiVector > | getDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const |
Teuchos::RCP< const Epetra_Map > | getFieldMap (const std::string &fieldName) const |
Teuchos::RCP< const Epetra_Map > | getFieldMap (int fieldNum) const |
Protected Types | |
typedef Epetra_IntVector | IntVector |
typedef Epetra_MultiVector | MultiVector |
typedef Epetra_BlockMap | Map |
Protected Member Functions | |
void | buildFieldVector (const Epetra_IntVector &source) const |
build unghosted field vector from ghosted field vector More... | |
Protected Attributes | |
Teuchos::RCP< const GlobalIndexer > | ugi_ |
DOF mapping. More... | |
Teuchos::RCP< const IntVector > | gh_reducedFieldVector_ |
Teuchos::RCP< const IntVector > | gh_fieldVector_ |
ghosted reduced field vector More... | |
std::map< int, Teuchos::RCP < const Map > > | gh_reducedFieldMaps_ |
ghosted field vector More... | |
std::map< int, Teuchos::RCP < const Map > > | gh_fieldMaps_ |
Maps for each field (as needed) More... | |
Teuchos::RCP< const IntVector > | fieldVector_ |
Maps for each field (as needed) More... | |
std::map< int, Teuchos::RCP < const Map > > | fieldMaps_ |
(unghosted) field vector (as needed) More... | |
Private Member Functions | |
ArrayToFieldVectorEpetra () | |
Maps for each field (as needed) More... | |
ArrayToFieldVectorEpetra (const ArrayToFieldVectorEpetra &) | |
This class assists in mapping arrays of field data to field vectors.
Definition at line 109 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
protected |
Definition at line 157 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
protected |
Definition at line 158 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
protected |
Definition at line 159 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
panzer::ArrayToFieldVectorEpetra::ArrayToFieldVectorEpetra | ( | const Teuchos::RCP< const GlobalIndexer > & | ugi | ) |
Construct information for the unique global indexer. Notice that this requires global communication.
|
private |
Maps for each field (as needed)
|
private |
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
.
[in] | fieldName | Name of field this data is from |
[in] | data | Array of data |
UGI::getOwnedAndGhostedIndices
. Definition at line 93 of file Panzer_GlobalIndexer_EpetraUtilities_impl.hpp.
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
.
[in] | fieldName | Name of field this data is from |
[in] | data | Array of data |
UGI::getOwnedIndices
. Definition at line 164 of file Panzer_GlobalIndexer_EpetraUtilities_impl.hpp.
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.
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.
|
protected |
build unghosted field vector from ghosted field vector
|
protected |
DOF mapping.
Definition at line 165 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
protected |
Definition at line 167 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
protected |
ghosted reduced field vector
Definition at line 168 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
mutableprotected |
ghosted field vector
Definition at line 170 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
mutableprotected |
Maps for each field (as needed)
Definition at line 171 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
mutableprotected |
Maps for each field (as needed)
Definition at line 173 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.
|
mutableprotected |
(unghosted) field vector (as needed)
Definition at line 174 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.