Panzer Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
panzer::ArrayToFieldVectorEpetra Class Reference

#include <Panzer_GlobalIndexer_EpetraUtilities.hpp>

Public Member Functions

 ArrayToFieldVectorEpetra (const Teuchos::RCP< const GlobalIndexer > &ugi)
 
template<typename ScalarT , typename ArrayT >
Teuchos::RCP< Epetra_MultiVectorgetGhostedDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const
 
template<typename ScalarT , typename ArrayT >
Teuchos::RCP< Epetra_MultiVectorgetDataVector (const std::string &fieldName, const std::map< std::string, ArrayT > &data) const
 
Teuchos::RCP< const Epetra_MapgetFieldMap (const std::string &fieldName) const
 
Teuchos::RCP< const Epetra_MapgetFieldMap (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
 

Protected Attributes

Teuchos::RCP< const GlobalIndexerugi_
 DOF mapping.
 
Teuchos::RCP< const IntVectorgh_reducedFieldVector_
 
Teuchos::RCP< const IntVectorgh_fieldVector_
 ghosted reduced field vector
 
std::map< int, Teuchos::RCP< const Map > > gh_reducedFieldMaps_
 ghosted field vector
 
std::map< int, Teuchos::RCP< const Map > > gh_fieldMaps_
 Maps for each field (as needed)
 
Teuchos::RCP< const IntVectorfieldVector_
 Maps for each field (as needed)
 
std::map< int, Teuchos::RCP< const Map > > fieldMaps_
 (unghosted) field vector (as needed)
 

Private Member Functions

 ArrayToFieldVectorEpetra ()
 Maps for each field (as needed)
 
 ArrayToFieldVectorEpetra (const ArrayToFieldVectorEpetra &)
 

Detailed Description

This class assists in mapping arrays of field data to field vectors.

Definition at line 141 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

Member Typedef Documentation

◆ IntVector

Definition at line 189 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ MultiVector

Definition at line 190 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ Map

Definition at line 191 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

Constructor & Destructor Documentation

◆ 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]

panzer::ArrayToFieldVectorEpetra::ArrayToFieldVectorEpetra ( const ArrayToFieldVectorEpetra & )
private

Member Function Documentation

◆ 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]fieldNameName of field this data is from
[in]dataArray of data
Returns
Returns a vector populated with the data. This vector is related to the UGI::getOwnedAndGhostedIndices.

Definition at line 124 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]fieldNameName of field this data is from
[in]dataArray of data
Returns
Returns a vector populated with the data. This vector is related to the UGI::getOwnedIndices.

Definition at line 195 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

Member Data Documentation

◆ ugi_

Teuchos::RCP<const GlobalIndexer> panzer::ArrayToFieldVectorEpetra::ugi_
protected

DOF mapping.

Definition at line 197 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ gh_reducedFieldVector_

Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::gh_reducedFieldVector_
protected

Definition at line 199 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ gh_fieldVector_

Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::gh_fieldVector_
protected

ghosted reduced field vector

Definition at line 200 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ gh_reducedFieldMaps_

std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::gh_reducedFieldMaps_
mutableprotected

ghosted field vector

Definition at line 202 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ gh_fieldMaps_

std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::gh_fieldMaps_
mutableprotected

Maps for each field (as needed)

Definition at line 203 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ fieldVector_

Teuchos::RCP<const IntVector> panzer::ArrayToFieldVectorEpetra::fieldVector_
mutableprotected

Maps for each field (as needed)

Definition at line 205 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.

◆ fieldMaps_

std::map<int,Teuchos::RCP<const Map> > panzer::ArrayToFieldVectorEpetra::fieldMaps_
mutableprotected

(unghosted) field vector (as needed)

Definition at line 206 of file Panzer_GlobalIndexer_EpetraUtilities.hpp.


The documentation for this class was generated from the following files: