3#ifndef DUNE_PDELAB_FUNCTION_MINUS_HH
4#define DUNE_PDELAB_FUNCTION_MINUS_HH
8#include <dune/pdelab/common/function.hh>
18 template<
typename GF1,
typename GF2>
21 MinusGridFunctionAdapter<GF1,GF2> >
23 static_assert(std::size_t(GF1::Traits::dimRange) ==
24 std::size_t(GF2::Traits::dimRange),
25 "Range dimension must match for both operands of a "
26 "MinusGridFunctionAdapter");
27 typedef typename GF1::Traits T;
38 : gf1(gf1_), gf2(gf2_)
41 void evaluate(
const typename Traits::ElementType &e,
42 const typename Traits::DomainType &x,
43 typename Traits::RangeType &y)
const {
45 typename GF2::Traits::RangeType y2;
50 const typename Traits::GridViewType& getGridView()
const {
51 return gf1.getGridView();
54 template<
typename Time>
55 void setTime(Time time) {
leaf of a function tree
Definition: function.hh:302
T Traits
Export type traits.
Definition: function.hh:193
Substract two GridFunctions.
Definition: minus.hh:22
Dune namespace.
Definition: alignedallocator.hh:11