3#ifndef DUNE_PDELAB_FUNCTION_SCALARSCALED_HH
4#define DUNE_PDELAB_FUNCTION_SCALARSCALED_HH
6#include <dune/pdelab/common/function.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 {
42 const typename Traits::GridViewType& getGridView()
const {
43 return gf.getGridView();
46 template<
typename Time>
47 void setTime(Time time) { gf.setTime(time); }
leaf of a function tree
Definition: function.hh:302
T Traits
Export type traits.
Definition: function.hh:193
Scale a GridFunction by a constant.
Definition: scalarscaled.hh:19
Dune namespace.
Definition: alignedallocator.hh:13