3 #ifndef DUNE_PDELAB_FUNCTION_DIVISION_HH 4 #define DUNE_PDELAB_FUNCTION_DIVISION_HH 16 template<
typename GF1,
typename GF2>
19 DivisionGridFunctionAdapter<GF1,GF2> >
21 static_assert(GF2::Traits::dimRange == 1,
"Range dimension must be " 22 "1 for the divisor of a DivisionGridFunctionAdapter");
23 typedef typename GF1::Traits T;
34 : gf1(gf1_), gf2(gf2_)
37 void evaluate(
const typename Traits::ElementType &
e,
38 const typename Traits::DomainType &x,
39 typename Traits::RangeType &y)
const {
41 typename GF2::Traits::RangeType y2;
47 return gf1.getGridView();
50 template<
typename Time>
60 #endif // DUNE_PDELAB_FUNCTION_DIVISION_HH const Entity & e
Definition: localfunctionspace.hh:120
leaf of a function tree
Definition: function.hh:298
void setTime(Time time)
Definition: division.hh:51
const Traits::GridViewType & getGridView() const
Definition: division.hh:46
DivisionGridFunctionAdapter(GF1 &gf1_, GF2 &gf2_)
Definition: division.hh:33
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Substract two GridFunctions.
Definition: division.hh:17
Base::Traits Traits
Definition: division.hh:31
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: division.hh:37
T Traits
Export type traits.
Definition: function.hh:192