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

A Const DiscreteFunction. More...

#include <DiscreteFunction.hpp>

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 = std::conditional_t< std::is_same_v< R, void >, RangeType_t< SubTree, Coefficient >, R >
 Range type of this DiscreteFunction. If R=void deduce the Range automatically, using RangeType_t.
 

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... Path>
 DiscreteFunction (Coefficients const &coefficients, std::shared_ptr< GlobalBasis const > const &basisPtr, Path... path)
 
template<class DV , class... Path, Dune::disableCopyMove< DiscreteFunction, DV > = 0, 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 Range = void, class... Indices>
auto child (Indices... ii) const
 

Protected Attributes

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

Related Functions

(Note that these are not member functions.)

LocalFunction< tag::valuemakeLocalFunction () const
 Create a local function for this view on the DOFVector. More...
 

Detailed Description

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

A Const DiscreteFunction.

Friends And Related Function Documentation

◆ makeLocalFunction()

LocalFunction<tag::value> makeLocalFunction ( ) const
related

Create a local function for this view on the DOFVector.

References DiscreteFunction< Coeff, GB, TreePath, R >::coefficients().


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