DUNE PDELab (git)

Dune::PDELab::GridFunctionBaseAdapter< Imp > Class Template Reference

Turn an ordinary GridFunction into a GridFunctionTree leaf. More...

#include <dune/pdelab/common/function.hh>

Public Types

typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode.
 

Public Member Functions

 GridFunctionBaseAdapter (const Imp &imp_)
 construct a GridFunctionBaseAdapter More...
 
void evaluate (const typename Imp::Traits::ElementType &e, const typename Imp::Traits::DomainType &x, typename Imp::Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 
const Imp::Traits::GridViewType & getGridView () const
 get a reference to the GridView
 
Output::DataSetType dataSetType () const
 Return the data set type of this function.
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function.
 

Static Public Attributes

static const bool isLeaf = true
 Mark this class as a leaf in a dune-typetree.
 
static const bool isPower = false
 Mark this class as a non power in the dune-typetree.
 
static const bool isComposite = false
 Mark this class as a non composite in the dune-typetree.
 

Detailed Description

template<class Imp>
class Dune::PDELab::GridFunctionBaseAdapter< Imp >

Turn an ordinary GridFunction into a GridFunctionTree leaf.

Template Parameters
ImpClass implementing the function.

Constructor & Destructor Documentation

◆ GridFunctionBaseAdapter()

template<class Imp >
Dune::PDELab::GridFunctionBaseAdapter< Imp >::GridFunctionBaseAdapter ( const Imp &  imp_)
inline

construct a GridFunctionBaseAdapter

Parameters
imp_The underlying ordinary GridFunction. A reference to this Object is stored, so the object must be valid for as long as this GridFunctionBaseAdapter is used.

Member Function Documentation

◆ evaluate()

template<class Imp >
void Dune::PDELab::GridFunctionBaseAdapter< Imp >::evaluate ( const typename Imp::Traits::ElementType &  e,
const typename Imp::Traits::DomainType &  x,
typename Imp::Traits::RangeType &  y 
) const
inline

Evaluate the GridFunction at given position.

Evaluates components of the grid function at the given position and returns these values in a vector.

Parameters
[in]eThe entity to evaluate on
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

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)