Panzer
Version of the Day
|
Functions | |
const std::vector< int > & | panzer::FieldAggPattern::localOffsets (int fieldId) const |
const PHX::View< const int * > | panzer::FieldAggPattern::localOffsetsKokkos (int fieldId) const |
const std::pair< std::vector < int >, std::vector< int > > & | panzer::FieldAggPattern::localOffsets_closure (int fieldId, int subcellDim, int subcellId) const |
const std::vector< int > & panzer::FieldAggPattern::localOffsets | ( | int | fieldId | ) | const |
This function produces a map between the ordering specified by this pattern and an ordering required by the pattern associated with fieldId
.
For instance if you have a vector called GIDs
of length this->numberIds()
and you want the GIDs associated with fieldId = 0
. Simply take the offsets
vector and index it into the GIDs
vector: GIDs[offsets[*]]
.
[in] | fieldId | Field to look up |
Definition at line 245 of file Panzer_FieldAggPattern.cpp.
This function produces a map between the ordering specified by this pattern and an ordering required by the pattern associated with fieldId
.
For instance if you have a vector called GIDs
of length this->numberIds()
and you want the GIDs associated with fieldId = 0
. Simply take the offsets
vector and index it into the GIDs
vector: GIDs[offsets[*]]
.
[in] | fieldId | Field to look up |
Definition at line 257 of file Panzer_FieldAggPattern.cpp.
const std::pair< std::vector< int >, std::vector< int > > & panzer::FieldAggPattern::localOffsets_closure | ( | int | fieldId, |
int | subcellDim, | ||
int | subcellId | ||
) | const |
Returns a pair of vectors. The first is the offsets into the global ID array for the field and subcell specified. This will be the indexing in the GIDs
vector (see localOffsets
). Notice that this returns the "closure". Meaning that all offsets for a particular subcell and the IDs that are on lower dimensional sub cells will be returned. This function has no (currently) specified order. The second vector is the index of the field's basis functions for the closure indices. The first and second vectors should have the same size.
Definition at line 293 of file Panzer_FieldAggPattern.cpp.