fei::DofMapper< LocalOrdinal, GlobalOrdinal, DofOrder > Class Template Reference

#include <fei_DofMapper.hpp>

List of all members.

Public Types

typedef std::map< Dof< LocalOrdinal,
GlobalOrdinal >, GlobalOrdinal,
DofOrder > 
DofMap
typedef std::map< GlobalOrdinal,
const Dof< LocalOrdinal,
GlobalOrdinal > * > 
IdxMap
typedef std::map< LocalOrdinal,
LocalOrdinal > 
FieldSizeMap

Public Member Functions

 DofMapper ()
 ~DofMapper ()
void addDOF (LocalOrdinal rank, GlobalOrdinal id, LocalOrdinal field)
void setFieldSize (LocalOrdinal field, LocalOrdinal field_size)
LocalOrdinal getFieldSize (LocalOrdinal field) const
GlobalOrdinal getGlobalIndex (LocalOrdinal rank, GlobalOrdinal id, LocalOrdinal field) const
std::pair< const Dof< LocalOrdinal,
GlobalOrdinal > *, LocalOrdinal > 
getDof (GlobalOrdinal global_index) const
bool maps_are_valid () const
void set_maps_are_valid (bool flag)
DofMap::const_iterator begin_dof () const
DofMap::const_iterator end_dof () const
DofMap::iterator begin_dof ()
DofMap::iterator end_dof ()
IdxMap::const_iterator begin_idx () const
IdxMap::const_iterator end_idx () const
IdxMap::iterator begin_idx ()
IdxMap::iterator end_idx ()
const DofMapget_dof_idx_map () const
DofMapget_dof_idx_map ()
const IdxMapget_idx_dof_map () const
IdxMapget_idx_dof_map ()
const FieldSizeMapgetFieldSizeMap () const


Detailed Description

template<class LocalOrdinal, class GlobalOrdinal, class DofOrder = less_rank_id_field<LocalOrdinal, GlobalOrdinal>>
class fei::DofMapper< LocalOrdinal, GlobalOrdinal, DofOrder >

A mapping from mesh-degrees-of-freedom (dofs) to equation-numbers.

Mesh-dofs are represented by fei::Dof, see fei_Dof.hpp for details.

Equation numbers are also called global indices. They are globally-unique and zero-based.

A 'dof' may correspond to multiple global-indices if the dof's field has multiple scalar components, e.g. a vector field such as velocity in 3D.

Fields are assumed to be scalar fields (have 1 component) unless a field-size is set using the setFieldSize method.

Definition at line 42 of file fei_DofMapper.hpp.


Constructor & Destructor Documentation

template<class LocalOrdinal, class GlobalOrdinal, class DofOrder = less_rank_id_field<LocalOrdinal, GlobalOrdinal>>
fei::DofMapper< LocalOrdinal, GlobalOrdinal, DofOrder >::DofMapper (  )  [inline]

constructor

Definition at line 45 of file fei_DofMapper.hpp.

template<class LocalOrdinal, class GlobalOrdinal, class DofOrder = less_rank_id_field<LocalOrdinal, GlobalOrdinal>>
fei::DofMapper< LocalOrdinal, GlobalOrdinal, DofOrder >::~DofMapper (  )  [inline]

destructor

Definition at line 49 of file fei_DofMapper.hpp.


Member Function Documentation

template<class LocalOrdinal, class GlobalOrdinal, class DofOrder>
void fei::DofMapper< LocalOrdinal, GlobalOrdinal, DofOrder >::setFieldSize ( LocalOrdinal  field,
LocalOrdinal  field_size 
)

Set the specified field to have the specified field_size. 'field' is added to the internal field map if not already present. If 'field' is already present, its field_size is reset to the new value.

Definition at line 124 of file fei_DofMapper.hpp.


The documentation for this class was generated from the following file:
Generated on Mon Jul 12 09:31:42 2010 for FEI by  doxygen 1.4.7