Flow123d  release_3.0.0-688-g6b683cf
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 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 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...
 
std::shared_ptr< Distributiondistr () const
 
Meshmesh () const
 Returns the mesh. More...
 
virtual unsigned int get_dof_indices (const ElementAccessor< 3 > &cell, std::vector< LongIdx > &indices) const =0
 Fill vector of the global indices of dofs associated to the cell. More...
 
virtual unsigned int get_loc_dof_indices (const ElementAccessor< 3 > &cell, std::vector< LongIdx > &indices) const =0
 Fill vector of the indices of dofs associated to the cell on the local process. More...
 
virtual std::size_t hash () const =0
 Compute hash value of DOF handler. More...
 
virtual ~DOFHandlerBase ()
 Destructor. More...
 

Protected Attributes

unsigned int n_global_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...
 
Meshmesh_
 Pointer to the mesh to which the dof handler is associated. More...
 
std::shared_ptr< Distributiondof_ds_
 Distribution of dofs associated to local process. More...
 

Detailed Description

Class DOFHandlerBase provides an abstract interface for various dof handlers:

Definition at line 46 of file dofhandler.hh.

Constructor & Destructor Documentation

DOFHandlerBase::DOFHandlerBase ( Mesh _mesh)
inline

Constructor.

Parameters
_meshThe mesh.

Definition at line 53 of file dofhandler.hh.

DOFHandlerBase::~DOFHandlerBase ( )
virtual

Destructor.

Definition at line 34 of file dofhandler.cc.

Here is the caller graph for this function:

Member Function Documentation

std::shared_ptr<Distribution> DOFHandlerBase::distr ( ) const
inline

Definition at line 77 of file dofhandler.hh.

Here is the caller graph for this function:

virtual unsigned int DOFHandlerBase::get_dof_indices ( const ElementAccessor< 3 > &  cell,
std::vector< LongIdx > &  indices 
) const
pure virtual

Fill vector of the global indices of dofs associated to the cell.

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

Implemented in DOFHandlerMultiDim.

Here is the caller graph for this function:

virtual unsigned int DOFHandlerBase::get_loc_dof_indices ( const ElementAccessor< 3 > &  cell,
std::vector< LongIdx > &  indices 
) const
pure virtual

Fill vector of the indices of dofs associated to the cell on the local process.

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

Implemented in DOFHandlerMultiDim.

Here is the caller graph for this function:

virtual std::size_t DOFHandlerBase::hash ( ) const
pure virtual

Compute hash value of DOF handler.

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 70 of file dofhandler.hh.

const unsigned int DOFHandlerBase::lsize ( ) const
inline

Returns the number of dofs on the current process.

Definition at line 65 of file dofhandler.hh.

const unsigned int DOFHandlerBase::max_elem_dofs ( ) const
inline

Returns max. number of dofs on one element.

Definition at line 75 of file dofhandler.hh.

Mesh* DOFHandlerBase::mesh ( ) const
inline

Returns the mesh.

Definition at line 82 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 60 of file dofhandler.hh.

Member Data Documentation

std::shared_ptr<Distribution> DOFHandlerBase::dof_ds_
protected

Distribution of dofs associated to local process.

Definition at line 136 of file dofhandler.hh.

unsigned int DOFHandlerBase::loffset_
protected

Index of the first dof on the local process.

Definition at line 123 of file dofhandler.hh.

unsigned int DOFHandlerBase::lsize_
protected

Number of dofs associated to local process.

Definition at line 118 of file dofhandler.hh.

unsigned int DOFHandlerBase::max_elem_dofs_
protected

Max. number of dofs per element.

Definition at line 126 of file dofhandler.hh.

Mesh* DOFHandlerBase::mesh_
protected

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

Definition at line 131 of file dofhandler.hh.

unsigned int DOFHandlerBase::n_global_dofs_
protected

Number of global dofs assigned by the handler.

Definition at line 113 of file dofhandler.hh.


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