3 #ifndef DUNE_PDELAB_FUNCTION_INVERSE_HH
4 #define DUNE_PDELAB_FUNCTION_INVERSE_HH
18 InverseGridFunctionAdapter<GF> >
20 static_assert(GF::Traits::dimRange == 1,
"Dimension of range must "
21 "be 1 to take the inverse");
23 typedef typename GF::Traits T;
26 typedef typename T::RangeFieldType RF;
37 void evaluate(
const typename Traits::ElementType &
e,
38 const typename Traits::DomainType &x,
39 typename Traits::RangeType &y)
const {
45 return gf.getGridView();
48 template<
typename Time>
49 void setTime(Time time) { gf.setTime(time); }
55 #endif // DUNE_PDELAB_FUNCTION_INVERSE_HH
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: inverse.hh:37
const E & e
Definition: interpolate.hh:172
leaf of a function tree
Definition: function.hh:576
InverseGridFunctionAdapter(GF &gf_)
Definition: inverse.hh:33
Base::Traits Traits
Definition: inverse.hh:31
T Traits
Export type traits.
Definition: function.hh:191
Definition: adaptivity.hh:27
const Traits::GridViewType & getGridView() const
Definition: inverse.hh:44
Take inverse of a GridFunction.
Definition: inverse.hh:16
void setTime(Time time)
Definition: inverse.hh:49