3 #ifndef DUNE_PDELAB_FUNCTION_DIVISION_HH
4 #define DUNE_PDELAB_FUNCTION_DIVISION_HH
6 #include <dune/common/static_assert.hh>
18 template<
typename GF1,
typename GF2>
21 DivisionGridFunctionAdapter<GF1,GF2> >
23 dune_static_assert(GF2::Traits::dimRange == 1,
"Range dimension must be "
24 "1 for the divisor of a DivisionGridFunctionAdapter");
25 typedef typename GF1::Traits T;
36 : gf1(gf1_), gf2(gf2_)
39 void evaluate(
const typename Traits::ElementType &
e,
40 const typename Traits::DomainType &x,
41 typename Traits::RangeType &y)
const {
43 typename GF2::Traits::RangeType y2;
49 return gf1.getGridView();
52 template<
typename Time>
62 #endif // DUNE_PDELAB_FUNCTION_DIVISION_HH
Base::Traits Traits
Definition: division.hh:33
DivisionGridFunctionAdapter(GF1 &gf1_, GF2 &gf2_)
Definition: division.hh:35
void setTime(Time time)
Definition: division.hh:53
leaf of a function tree
Definition: function.hh:577
const Traits::GridViewType & getGridView() const
Definition: division.hh:48
T Traits
Export type traits.
Definition: function.hh:192
Substract two GridFunctions.
Definition: division.hh:19
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: division.hh:39
const E & e
Definition: interpolate.hh:172