3#ifndef DUNE_PDELAB_FUNCTION_DIVISION_HH
4#define DUNE_PDELAB_FUNCTION_DIVISION_HH
6#include <dune/pdelab/common/function.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;
46 const typename Traits::GridViewType& getGridView()
const {
47 return gf1.getGridView();
50 template<
typename Time>
51 void setTime(Time time) {
Substract two GridFunctions.
Definition: division.hh:20
leaf of a function tree
Definition: function.hh:302
T Traits
Export type traits.
Definition: function.hh:193
Dune namespace.
Definition: alignedallocator.hh:11