Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 Get the set of indices owned by this processor. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getGhostedIndices (std::vector< GlobalOrdinal > &indices) const
 Get the set of indices ghosted for this processor. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getOwnedAndGhostedIndices (std::vector< GlobalOrdinal > &indices) const
 Get the set of owned and ghosted indices for this processor. More...
 
virtual int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumOwned () const
 Get the number of indices owned by this processor. More...
 
virtual int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumGhosted () const
 Get the number of indices ghosted for this processor. More...
 
virtual int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumOwnedAndGhosted () const
 Get the number of owned and ghosted indices for this processor. More...
 
virtual void panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::ownedIndices (const std::vector< GlobalOrdinal > &indices, std::vector< bool > &isOwned) const
 

Detailed Description

Function Documentation

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 93 of file Panzer_BlockedDOFManager.hpp.

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 78 of file Panzer_BlockedDOFManager_impl.hpp.

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 94 of file Panzer_BlockedDOFManager_impl.hpp.

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 129 of file Panzer_BlockedDOFManager.hpp.

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 111 of file Panzer_BlockedDOFManager_impl.hpp.

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 143 of file Panzer_BlockedDOFManager.hpp.

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 127 of file Panzer_BlockedDOFManager_impl.hpp.

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 140 of file Panzer_BlockedDOFManager_impl.hpp.

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 164 of file Panzer_BlockedDOFManager_impl.hpp.

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 188 of file Panzer_BlockedDOFManager_impl.hpp.

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 256 of file Panzer_BlockedDOFManager_impl.hpp.

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

Get the set of indices owned by this processor.

Parameters
[out]indicesA vector that will be filled with the indices owned by this processor.

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

Definition at line 311 of file Panzer_BlockedDOFManager_impl.hpp.

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

Get the set of indices ghosted for this processor.

Parameters
[out]indicesA vector that will be filled with the indices ghosted for this processor.

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

Definition at line 334 of file Panzer_BlockedDOFManager_impl.hpp.

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.

Parameters
[out]indicesA vector that will be filled with the owned and ghosted indices for this processor.

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

Definition at line 357 of file Panzer_BlockedDOFManager_impl.hpp.

template<typename LocalOrdinalT , typename GlobalOrdinalT >
int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumOwned ( ) const
virtual

Get the number of indices owned by this processor.

Returns
The number of indices owned by this processor.

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

Definition at line 381 of file Panzer_BlockedDOFManager_impl.hpp.

template<typename LocalOrdinalT , typename GlobalOrdinalT >
int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumGhosted ( ) const
virtual

Get the number of indices ghosted for this processor.

Returns
The number of indices ghosted for this processor.

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

Definition at line 398 of file Panzer_BlockedDOFManager_impl.hpp.

template<typename LocalOrdinalT , typename GlobalOrdinalT >
int panzer::BlockedDOFManager< LocalOrdinalT, GlobalOrdinalT >::getNumOwnedAndGhosted ( ) const
virtual

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

Returns
The number of owned and ghosted indices for this processor.

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

Definition at line 415 of file Panzer_BlockedDOFManager_impl.hpp.

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 425 of file Panzer_BlockedDOFManager_impl.hpp.