Flow123d
release_2.2.0-914-gf1a3a4f
|
#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... | |
const unsigned int | max_elem_dofs () const |
Returns max. number of dofs on one element. More... | |
Distribution * | distr () const |
Returns the parallel distribution of dofs. More... | |
Mesh * | mesh () const |
Returns the mesh. More... | |
virtual unsigned int | get_dof_indices (const CellIterator &cell, std::vector< IdxInt > &indices) const =0 |
Fill vector of the global indices of dofs associated to the cell . More... | |
virtual unsigned int | get_loc_dof_indices (const CellIterator &cell, std::vector< IdxInt > &indices) const =0 |
Fill vector of 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 std::size_t | hash () const =0 |
Compute hash value of DOF handler. 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... | |
unsigned int | max_elem_dofs_ |
Max. number of dofs per element. 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 40 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 47 of file dofhandler.hh.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 127 of file dofhandler.hh.
|
inline |
Returns the parallel distribution of dofs.
Definition at line 88 of file dofhandler.hh.
|
pure virtual |
Fill vector of the global indices of dofs associated to the cell
.
cell | The cell. |
indices | Vector 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 |
Fill vector of the indices of dofs associated to the cell
on the local process.
cell | The cell. |
indices | Vector of dof indices on the cell. |
Implemented in DOFHandlerMultiDim.
|
pure virtual |
Compute hash value of DOF handler.
Implemented in DOFHandlerMultiDim.
|
inline |
Returns the offset of the local part of dofs.
Definition at line 78 of file dofhandler.hh.
|
inline |
Returns the number of dofs on the current process.
Definition at line 73 of file dofhandler.hh.
|
inline |
Returns max. number of dofs on one element.
Definition at line 83 of file dofhandler.hh.
|
inline |
Returns the mesh.
Definition at line 93 of file dofhandler.hh.
|
inline |
Getter for the number of all mesh dofs required by the given finite element.
Definition at line 62 of file dofhandler.hh.
|
inline |
Returns the number of the first global dof handled by this DOFHandler.
Definition at line 68 of file dofhandler.hh.
|
protected |
Distribution of dofs associated to local process.
Definition at line 166 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 127 of file dofhandler.hh.
|
protected |
Index of the first dof on the local process.
Definition at line 153 of file dofhandler.hh.
|
protected |
Number of dofs associated to local process.
Definition at line 148 of file dofhandler.hh.
|
protected |
Max. number of dofs per element.
Definition at line 156 of file dofhandler.hh.
|
protected |
Pointer to the mesh to which the dof handler is associated.
Definition at line 161 of file dofhandler.hh.
|
protected |
Number of global dofs assigned by the handler.
Definition at line 143 of file dofhandler.hh.