DUNE PDELab (git)

Dune::PDELab::LocalFunctionSpace< GFS, TAG > Class Template Reference

Create a local function space from a global function space. More...

#include <dune/pdelab/gridfunctionspace/localfunctionspace.hh>

Public Member Functions

Traits::IndexContainer::size_type size () const
 number of degrees of freedom contained in this lfs node
 
Traits::IndexContainer::size_type maxSize () const
 get maximum possible size (which is maxLocalSize from grid function space)
 
Traits::IndexContainer::size_type localVectorSize () const
 get size of an appropriate local vector object More...
 
const Traits::DOFIndexdofIndex (typename Traits::IndexContainer::size_type index) const
 Maps given index in this local function space to its corresponding global MultiIndex. More...
 
void debug () const
 print debug information about this local function space
 
const GFS & gridFunctionSpace () const
 Returns the GridFunctionSpace underlying this LocalFunctionSpace.
 

Detailed Description

template<typename GFS, typename TAG>
class Dune::PDELab::LocalFunctionSpace< GFS, TAG >

Create a local function space from a global function space.

The local function space can be tagged with one of the tags defined in localfunctionspacetags.hh. This allows to destinguish between trial and test space.

If no TAG is specified the AnySpaceTag is used, which basically states, that it is not clear, whether this is a trial of a test space.

Member Function Documentation

◆ dofIndex()

template<typename GFS , typename DOFIndex >
const Traits::DOFIndex & Dune::PDELab::LocalFunctionSpaceBaseNode< GFS, DOFIndex >::dofIndex ( typename Traits::IndexContainer::size_type  index) const
inlineinherited

Maps given index in this local function space to its corresponding global MultiIndex.

Parameters
indexThe local index value from the range 0,...,size()-1
Returns
A const reference to the associated, globally unique MultiIndex. Note that the returned object may (and must) be copied if it needs to be stored beyond the time of the next call to bind() on this LocalFunctionSpace (e.g. when the MultiIndex is used as a DOF identifier in a constraints container).

◆ localVectorSize()

template<typename GFS , typename DOFIndex >
Traits::IndexContainer::size_type Dune::PDELab::LocalFunctionSpaceBaseNode< GFS, DOFIndex >::localVectorSize ( ) const
inlineinherited

get size of an appropriate local vector object

this is the number of dofs of the complete local function space tree, i.e. the size() of the root node. The local vector objects must always have this size and the localIndex method maps into the range [0,localVectorSize()[


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)