3 #ifndef DUNE_PDELAB_FUNCTION_SCALARSCALED_HH 4 #define DUNE_PDELAB_FUNCTION_SCALARSCALED_HH 18 ScalarScaledGridFunctionAdapter<GF> >
20 typedef typename GF::Traits T;
23 typedef typename T::RangeFieldType RF;
32 : factor(factor_), gf(gf_)
35 void evaluate(
const typename Traits::ElementType &
e,
36 const typename Traits::DomainType &x,
37 typename Traits::RangeType &y)
const {
43 return gf.getGridView();
46 template<
typename Time>
47 void setTime(Time time) { gf.setTime(time); }
53 #endif // DUNE_PDELAB_FUNCTION_SCALARSCALED_HH Base::Traits Traits
Definition: scalarscaled.hh:29
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
void setTime(Time time)
Definition: scalarscaled.hh:47
const Traits::GridViewType & getGridView() const
Definition: scalarscaled.hh:42
const Entity & e
Definition: localfunctionspace.hh:111
Scale a GridFunction by a constant.
Definition: scalarscaled.hh:16
T Traits
Export type traits.
Definition: function.hh:191
ScalarScaledGridFunctionAdapter(RF factor_, GF &gf_)
Definition: scalarscaled.hh:31
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: scalarscaled.hh:35
leaf of a function tree
Definition: function.hh:575