Go to the documentation of this file.
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
ScalarScaledGridFunctionAdapter(RF factor_, GF &gf_)
Definition: scalarscaled.hh:31
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: scalarscaled.hh:35
T Traits
Export type traits.
Definition: function.hh:192
const Entity & e
Definition: localfunctionspace.hh:120
leaf of a function tree
Definition: function.hh:298
void setTime(Time time)
Definition: scalarscaled.hh:47
Base::Traits Traits
Definition: scalarscaled.hh:29
const Traits::GridViewType & getGridView() const
Definition: scalarscaled.hh:42
Scale a GridFunction by a constant.
Definition: scalarscaled.hh:16