Flow123d
release_2.2.0-21-g2806cf6
|
#include <dofhandler.hh>
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... | |
Distribution * | distr () const |
Mesh * | mesh () 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... | |
Mesh * | mesh_ |
Pointer to the mesh to which the dof handler is associated. More... | |
Distribution * | ds_ |
Distribution of dofs associated to local process. More... | |
Class DOFHandlerBase provides an abstract interface for various dof handlers:
Definition at line 39 of file dofhandler.hh.
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.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 110 of file dofhandler.hh.
|
inline |
|
pure virtual |
Returns the global indices of dofs associated to the cell
.
cell | The cell. |
indices | Array of dof indices on the cell. |
Implemented in DOFHandlerMultiDim.
|
pure virtual |
Returns the dof values associated to the cell
.
cell | The cell. |
values | The global vector of values. |
local_values | Array of values at local dofs. |
Implemented in DOFHandlerMultiDim.
|
pure virtual |
Returns the indices of dofs associated to the cell
on the local process.
cell | The cell. |
indices | Array of dof indices on the cell. |
Implemented in DOFHandlerMultiDim.
|
inline |
Returns the offset of the local part of dofs.
Definition at line 77 of file dofhandler.hh.
|
inline |
Returns the number of dofs on the current process.
Definition at line 72 of file dofhandler.hh.
|
inline |
|
inline |
Getter for the number of all mesh dofs required by the given finite element.
Definition at line 61 of file dofhandler.hh.
|
inline |
Returns the number of the first global dof handled by this DOFHandler.
Definition at line 67 of file dofhandler.hh.
|
protected |
Distribution of dofs associated to local process.
Definition at line 146 of file dofhandler.hh.
|
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.
|
protected |
Index of the first dof on the local process.
Definition at line 136 of file dofhandler.hh.
|
protected |
Number of dofs associated to local process.
Definition at line 131 of file dofhandler.hh.
|
protected |
Pointer to the mesh to which the dof handler is associated.
Definition at line 141 of file dofhandler.hh.
|
protected |
Number of global dofs assigned by the handler.
Definition at line 126 of file dofhandler.hh.