Panzer  Version of the Day
Functions
Methods required by the <code>UniqueGlobalIndexer</code> interface

Functions

virtual Teuchos::RCP< Teuchos::Comm< int > > panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getComm () const
 
int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getFieldNum (const std::string &str) const
 Get the number used for access to this field. More...
 
const std::string & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getFieldString (int num) const
 Get the string name associated with a field number. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementBlockIds (std::vector< std::string > &elementBlockIds) const
 
virtual bool panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::fieldInBlock (const std::string &field, const std::string &block) const
 
virtual const std::vector< LocalOrdinal > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementBlock (const std::string &blockId) const
 
virtual const std::vector< int > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getBlockFieldNumbers (const std::string &block) const
 
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementGIDs (LocalOrdinalT localElmtId, std::vector< GlobalOrdinal > &gids, const std::string &blockIdHint="") const
 Get the global IDs for a particular element. This function overwrites the gids variable. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementOrientation (LocalOrdinalT localElmtId, std::vector< double > &gidsOrientation) const
 Get a vector containg the orientation of the GIDs relative to the neighbors. More...
 
virtual const std::vector< int > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getGIDFieldOffsets (const std::string &blockId, int fieldNum) const
 Use the field pattern so that you can find a particular field in the GIDs array. More...
 
virtual const std::pair< std::vector< int >, std::vector< int > > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getGIDFieldOffsets_closure (const std::string &blockId, int fieldNum, int subcellDim, int subcellId) const
 Use the field pattern so that you can find a particular field in the GIDs array. This version lets you specify the sub cell you are interested in and gets the closure. Meaning all the IDs of equal or lesser sub cell dimension that are contained within the specified sub cell. For instance for an edge, this function would return offsets for the edge and the nodes on that edge. The first vector returned contains the index into the GIDs array. The second vector specifies the basis function IDs. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getOwnedIndices (std::vector< GlobalOrdinal > &indices) const
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getOwnedAndGhostedIndices (std::vector< GlobalOrdinal > &indices) const
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::ownedIndices (const std::vector< GlobalOrdinal > &indices, std::vector< bool > &isOwned) const
 

Detailed Description

Function Documentation

◆ getComm()

template<typename LocalOrdinalT, typename GlobalOrdinalT>
virtual Teuchos::RCP<Teuchos::Comm<int> > panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getComm ( ) const
inlinevirtual

Get communicator associated with this manager.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 92 of file Panzer_BlockedDOFManager.hpp.

◆ getFieldNum()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getFieldNum ( const std::string &  str) const
virtual

Get the number used for access to this field.

Get the number used for access to this field. This is used as the input parameter to the other functions that provide access to the global unknowns.

Parameters
[in]strHuman readable name of the field
Returns
A unique integer associated with the field if the field exisits. Otherwise a -1 is returned.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 77 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getFieldString()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
const std::string & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getFieldString ( int  num) const
virtual

Get the string name associated with a field number.

Get the string used for access to this field.

Parameters
[in]intA unique integer associated with the field.
Returns
Human readable name of the field
Note
This method will throw if invalid field number is passed in as an argument.

Implements panzer::UniqueGlobalIndexerBase.

Definition at line 93 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getElementBlockIds()

template<typename LocalOrdinalT, typename GlobalOrdinalT>
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementBlockIds ( std::vector< std::string > &  elementBlockIds) const
inlinevirtual

What are the blockIds included in this connection manager?

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 128 of file Panzer_BlockedDOFManager.hpp.

◆ fieldInBlock()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
bool panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::fieldInBlock ( const std::string &  field,
const std::string &  block 
) const
virtual

Is the specified field in the element block?

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 110 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getElementBlock()

template<typename LocalOrdinalT, typename GlobalOrdinalT>
virtual const std::vector<LocalOrdinal>& panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementBlock ( const std::string &  blockId) const
inlinevirtual

Get the local element IDs for a paricular element block.

Parameters
[in]blockIdBlock ID
Returns
Vector of local element IDs.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 142 of file Panzer_BlockedDOFManager.hpp.

◆ getBlockFieldNumbers()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
const std::vector< int > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getBlockFieldNumbers ( const std::string &  block) const
virtual

Get field numbers associated with a particular element block.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 126 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getElementGIDs()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementGIDs ( LocalOrdinalT  localElmtId,
std::vector< GlobalOrdinal > &  gids,
const std::string &  blockIdHint = "" 
) const
virtual

Get the global IDs for a particular element. This function overwrites the gids variable.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 139 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getElementOrientation()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getElementOrientation ( LocalOrdinalT  localElmtId,
std::vector< double > &  gidsOrientation 
) const
virtual

Get a vector containg the orientation of the GIDs relative to the neighbors.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 163 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getGIDFieldOffsets()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
const std::vector< int > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getGIDFieldOffsets ( const std::string &  blockId,
int  fieldNum 
) const
virtual

Use the field pattern so that you can find a particular field in the GIDs array.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 187 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getGIDFieldOffsets_closure()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
const std::pair< std::vector< int >, std::vector< int > > & panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getGIDFieldOffsets_closure ( const std::string &  blockId,
int  fieldNum,
int  subcellDim,
int  subcellId 
) const
virtual

Use the field pattern so that you can find a particular field in the GIDs array. This version lets you specify the sub cell you are interested in and gets the closure. Meaning all the IDs of equal or lesser sub cell dimension that are contained within the specified sub cell. For instance for an edge, this function would return offsets for the edge and the nodes on that edge. The first vector returned contains the index into the GIDs array. The second vector specifies the basis function IDs.

Parameters
[in]blockId
[in]fieldNum
[in]subcellDim
[in]subcellId

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 255 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getOwnedIndices()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getOwnedIndices ( std::vector< GlobalOrdinal > &  indices) const
virtual

Get set of indices owned by this processor

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 303 of file Panzer_BlockedDOFManager_impl.hpp.

◆ getOwnedAndGhostedIndices()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getOwnedAndGhostedIndices ( std::vector< GlobalOrdinal > &  indices) const
virtual

Get the set of owned and ghosted indices for this processor.

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 317 of file Panzer_BlockedDOFManager_impl.hpp.

◆ ownedIndices()

template<typename LocalOrdinalT , typename GlobalOrdinalT >
void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::ownedIndices ( const std::vector< GlobalOrdinal > &  indices,
std::vector< bool > &  isOwned 
) const
virtual

Get a yes/no on ownership for each index in a vector

Implements panzer::UniqueGlobalIndexer< LocalOrdinalT, std::pair< int, GlobalOrdinalT > >.

Definition at line 331 of file Panzer_BlockedDOFManager_impl.hpp.