DUNE PDELab (2.8)

Dune::PDELab::DifferenceSquaredAdapter< T1, T2 > Class Template Reference

Adapter returning ||f1(x)-f2(x)||^2 for two given grid functions. More...

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

Public Types

typedef T::GridViewType GridViewType
 Type of the GridView.
 
typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode.
 

Public Member Functions

 DifferenceSquaredAdapter (const T1 &t1_, const T2 &t2_)
 constructor
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 
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.
 
static const std::size_t CHILDREN = 0
 Leafs have no children.
 

Detailed Description

template<typename T1, typename T2>
class Dune::PDELab::DifferenceSquaredAdapter< T1, T2 >

Adapter returning ||f1(x)-f2(x)||^2 for two given grid functions.

Template Parameters
T1a grid function type
T2a grid function type
Examples
recipe-grid-function-operations.cc, and recipe-operator-splitting.cc.

Member Function Documentation

◆ evaluate()

template<typename T1 , typename T2 >
void Dune::PDELab::DifferenceSquaredAdapter< T1, T2 >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename 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.80.0 (Apr 27, 22:29, 2024)