Flow123d  release_2.2.1-10-gb9fad4d
Public Types | Public Member Functions | Protected Attributes | List of all members
DOFHandlerBase Class Referenceabstract

#include <dofhandler.hh>

Inheritance diagram for DOFHandlerBase:
Inheritance graph
[legend]
Collaboration diagram for DOFHandlerBase:
Collaboration graph
[legend]

Public Types

typedef ElementFullIter CellIterator
 Alias for iterator over cells. More...
 

Public Member Functions

 DOFHandlerBase (Mesh &_mesh)
 Constructor. More...
 
const unsigned int n_global_dofs () const
 Getter for the number of all mesh dofs required by the given finite element. More...
 
const unsigned int offset () const
 Returns the number of the first global dof handled by this DOFHandler. More...
 
const unsigned int lsize () const
 Returns the number of dofs on the current process. More...
 
const unsigned int loffset () const
 Returns the offset of the local part of dofs. More...
 
Distributiondistr () const
 
Meshmesh () const
 
virtual void get_dof_indices (const CellIterator &cell, unsigned int indices[]) const =0
 Returns the global indices of dofs associated to the cell. More...
 
virtual void get_loc_dof_indices (const CellIterator &cell, unsigned int indices[]) const =0
 Returns the indices of dofs associated to the cell on the local process. More...
 
virtual void get_dof_values (const CellIterator &cell, const Vec &values, double local_values[]) const =0
 Returns the dof values associated to the cell. More...
 
virtual ~DOFHandlerBase ()
 Destructor. More...
 

Protected Attributes

unsigned int global_dof_offset
 Index of first global dof. More...
 
unsigned int n_dofs
 Number of global dofs assigned by the handler. More...
 
unsigned int lsize_
 Number of dofs associated to local process. More...
 
unsigned int loffset_
 Index of the first dof on the local process. More...
 
Meshmesh_
 Pointer to the mesh to which the dof handler is associated. More...
 
Distributionds_
 Distribution of dofs associated to local process. More...
 

Detailed Description

Class DOFHandlerBase provides an abstract interface for various dof handlers:

Definition at line 39 of file dofhandler.hh.

Member Typedef Documentation

Alias for iterator over cells.

TODO: Notation to be fixed: element or cell TODO: Iterator goes through cells of all dimensions, but should go only through dim-dimensional ones.

Definition at line 46 of file dofhandler.hh.

Constructor & Destructor Documentation

DOFHandlerBase::DOFHandlerBase ( Mesh _mesh)
inline

Constructor.

Parameters
_meshThe mesh.

Definition at line 46 of file dofhandler.hh.

virtual DOFHandlerBase::~DOFHandlerBase ( )
inlinevirtual

Destructor.

Definition at line 110 of file dofhandler.hh.

Member Function Documentation

Distribution* DOFHandlerBase::distr ( ) const
inline

Definition at line 79 of file dofhandler.hh.

Here is the caller graph for this function:

virtual void DOFHandlerBase::get_dof_indices ( const CellIterator cell,
unsigned int  indices[] 
) const
pure virtual

Returns the global indices of dofs associated to the cell.

Parameters
cellThe cell.
indicesArray of dof indices on the cell.

Implemented in DOFHandlerMultiDim.

Here is the caller graph for this function:

virtual void DOFHandlerBase::get_dof_values ( const CellIterator cell,
const Vec &  values,
double  local_values[] 
) const
pure virtual

Returns the dof values associated to the cell.

Parameters
cellThe cell.
valuesThe global vector of values.
local_valuesArray of values at local dofs.

Implemented in DOFHandlerMultiDim.

Here is the caller graph for this function:

virtual void DOFHandlerBase::get_loc_dof_indices ( const CellIterator cell,
unsigned int  indices[] 
) const
pure virtual

Returns the indices of dofs associated to the cell on the local process.

Parameters
cellThe cell.
indicesArray of dof indices on the cell.

Implemented in DOFHandlerMultiDim.

Here is the caller graph for this function:

const unsigned int DOFHandlerBase::loffset ( ) const
inline

Returns the offset of the local part of dofs.

Definition at line 77 of file dofhandler.hh.

const unsigned int DOFHandlerBase::lsize ( ) const
inline

Returns the number of dofs on the current process.

Definition at line 72 of file dofhandler.hh.

Mesh* DOFHandlerBase::mesh ( ) const
inline

Definition at line 81 of file dofhandler.hh.

Here is the caller graph for this function:

const unsigned int DOFHandlerBase::n_global_dofs ( ) const
inline

Getter for the number of all mesh dofs required by the given finite element.

Definition at line 61 of file dofhandler.hh.

Here is the caller graph for this function:

const unsigned int DOFHandlerBase::offset ( ) const
inline

Returns the number of the first global dof handled by this DOFHandler.

Definition at line 67 of file dofhandler.hh.

Here is the caller graph for this function:

Member Data Documentation

Distribution* DOFHandlerBase::ds_
protected

Distribution of dofs associated to local process.

Definition at line 146 of file dofhandler.hh.

unsigned int DOFHandlerBase::global_dof_offset
protected

Index of first global dof.

Positive value indicates that the first global_dof_offset entries in the global dof vector are reserved for a different DOFHandler.

Definition at line 110 of file dofhandler.hh.

unsigned int DOFHandlerBase::loffset_
protected

Index of the first dof on the local process.

Definition at line 136 of file dofhandler.hh.

unsigned int DOFHandlerBase::lsize_
protected

Number of dofs associated to local process.

Definition at line 131 of file dofhandler.hh.

Mesh* DOFHandlerBase::mesh_
protected

Pointer to the mesh to which the dof handler is associated.

Definition at line 141 of file dofhandler.hh.

unsigned int DOFHandlerBase::n_dofs
protected

Number of global dofs assigned by the handler.

Definition at line 126 of file dofhandler.hh.


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