3#ifndef DUNE_PDELAB_FUNCTION_SQRT_HH
4#define DUNE_PDELAB_FUNCTION_SQRT_HH
6#include <dune/pdelab/common/function.hh>
18 SqrtGridFunctionAdapter<GF> >
20 static_assert(GF::Traits::dimRange == 1,
"Dimension of range must "
21 "be 1 to take the sqrt");
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 const typename Traits::GridViewType& getGridView()
const {
46 return gf.getGridView();
49 template<
typename Time>
50 void setTime(Time time) { gf.setTime(time); }
leaf of a function tree
Definition: function.hh:302
T Traits
Export type traits.
Definition: function.hh:193
Take sqrt of a GridFunction.
Definition: sqrt.hh:19
Dune namespace.
Definition: alignedallocator.hh:13