AMDiS  0.1
The Adaptive Multi-Dimensional Simulation Toolbox
DiscreteFunction< Coeff const, GB, TreePath > Class Template Reference

A Const DiscreteFunction. More...

#include <DiscreteFunction.hpp>


class  DerivativeLocalFunctionBase
 A LocalFunction representing the derivative of the DOFVector on a bound element. More...

Public Types

enum  { hasDerivative = false }
 This GridFunction has no derivative function, it can be created by DiscreteGridFunction.
using EntitySet = Dune::Functions::GridViewEntitySet< GridView, 0 >
 Set of entities the DiscreteFunction is defined on.
using Domain = typename EntitySet::GlobalCoordinate
 Global coordinates of the EntitySet.
using Range = RangeType_t< SubTree, ValueType >
 Range type of this DiscreteFunction.

Public Member Functions

template<class... Path>
 DiscreteFunction (Coefficients const &coefficients, GlobalBasis const &basis, Path... path)
 Constructor. Stores a pointer to the dofVector and a copy of the treePath.
template<class DV , class... Path, class Coeff_ = TYPEOF(std::declval<DV>().coefficients()), class GB_ = TYPEOF(*std::declval<DV>().basis())>
 DiscreteFunction (DV const &dofVector, Path... path)
 Construct a DiscreteFunction directly from a DOFVector.
Range operator() (Domain const &x) const
 Evaluate DiscreteFunction in global coordinates. NOTE: expensive.
EntitySet const & entitySet () const
 Return a Dune::Functions::GridViewEntitySet.
GlobalBasis const & basis () const
 Return global basis bound to the DOFVector.
TreePath const & treePath () const
 Return treePath associated with this discrete function.
Coefficients const & coefficients () const
 Return const coefficient vector.
template<class... Indices>
auto child (Indices... ii) const

Protected Attributes

Coefficients const * coefficients_
GlobalBasis const * basis_
TreePath treePath_
EntitySet entitySet_
NodeToRangeEntry nodeToRangeEntry_

Related Functions

(Note that these are not member functions.)

LocalFunction makeLocalFunction () const
 Create a local function for this view on the DOFVector. More...

Detailed Description

template<class Coeff, class GB, class TreePath>
class AMDiS::DiscreteFunction< Coeff const, GB, TreePath >

A Const DiscreteFunction.

Friends And Related Function Documentation

◆ makeLocalFunction()

LocalFunction makeLocalFunction ( ) const

Create a local function for this view on the DOFVector.

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