3 #ifndef DUNE_PDELAB_FUNCTION_SQR_HH 4 #define DUNE_PDELAB_FUNCTION_SQR_HH 6 #include <dune/common/fvector.hh> 21 typename GF::Traits::GridViewType,
22 typename GF::Traits::RangeFieldType, 1,
23 FieldVector<typename GF::Traits::RangeFieldType, 1>
25 SqrGridFunctionAdapter<GF>
29 typename GF::Traits::GridViewType,
30 typename GF::Traits::RangeFieldType, 1,
31 FieldVector<typename GF::Traits::RangeFieldType, 1>
46 void evaluate(
const typename Traits::ElementType &
e,
47 const typename Traits::DomainType &x,
48 typename Traits::RangeType &y)
const 50 typename GF::Traits::RangeType y_;
56 return gf.getGridView();
59 template<
typename Time>
60 void setTime(Time time) { gf.setTime(time); }
66 #endif // DUNE_PDELAB_FUNCTION_SQR_HH leaf of a function tree
Definition: function.hh:575
SqrGridFunctionAdapter(GF &gf_)
Definition: sqr.hh:42
T Traits
Export type traits.
Definition: function.hh:191
RF RangeFieldType
Export type for range field.
Definition: function.hh:51
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: sqr.hh:46
void setTime(Time time)
Definition: sqr.hh:60
Base::Traits Traits
Definition: sqr.hh:40
const Traits::GridViewType & getGridView() const
Definition: sqr.hh:55
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
const Entity & e
Definition: localfunctionspace.hh:111
Take square of a GridFunction.
Definition: sqr.hh:18
traits class holding the function signature, same as in local function
Definition: function.hh:175