3 #ifndef DUNE_PDELAB_FUNCTION_INVERSE_HH
4 #define DUNE_PDELAB_FUNCTION_INVERSE_HH
6 #include <dune/common/static_assert.hh>
20 InverseGridFunctionAdapter<GF> >
22 dune_static_assert(GF::Traits::dimRange == 1,
"Dimension of range must "
23 "be 1 to take the inverse");
25 typedef typename GF::Traits T;
28 typedef typename T::RangeFieldType RF;
39 void evaluate(
const typename Traits::ElementType &
e,
40 const typename Traits::DomainType &x,
41 typename Traits::RangeType &y)
const {
47 return gf.getGridView();
50 template<
typename Time>
51 void setTime(Time time) { gf.setTime(time); }
57 #endif // DUNE_PDELAB_FUNCTION_INVERSE_HH
Base::Traits Traits
Definition: inverse.hh:33
Take inverse of a GridFunction.
Definition: inverse.hh:18
void setTime(Time time)
Definition: inverse.hh:51
leaf of a function tree
Definition: function.hh:577
const Traits::GridViewType & getGridView() const
Definition: inverse.hh:46
InverseGridFunctionAdapter(GF &gf_)
Definition: inverse.hh:35
T Traits
Export type traits.
Definition: function.hh:192
const E & e
Definition: interpolate.hh:172
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Definition: inverse.hh:39