3#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_GRIDVIEWFUNCTION_HH
4#define DUNE_FUNCTIONS_GRIDFUNCTIONS_GRIDVIEWFUNCTION_HH
8#include <dune/common/concept.hh>
10#include <dune/functions/gridfunctions/gridfunction.hh>
11#include <dune/functions/gridfunctions/gridviewentityset.hh>
12#include <dune/functions/gridfunctions/analyticgridviewfunction.hh>
20template<
class Signature,
class Gr
idView,
template<
class>
class DerivativeTraits=DefaultDerivativeTraits,
size_t bufferSize=56>
40template<
class Range,
class Domain,
class GV,
template<
class>
class DerivativeTraits,
size_t bufferSize>
41class GridViewFunction<Range(Domain), GV, DerivativeTraits, bufferSize> :
42 public GridFunction<Range(Domain), GridViewEntitySet<GV, 0>, DerivativeTraits, bufferSize>
64template<
class F,
class GridView,
65 typename std::enable_if<
66 models< Imp::HasFreeLocalFunction, F>() ,
int>::type = 0>
67typename std::decay<F>::type
68 makeGridViewFunction(F&& f,
const GridView& gridView)
70 return std::forward<F>(f);
92template<
class F,
class GridView,
93 typename std::enable_if<
94 not(models< Imp::HasFreeLocalFunction, F>()) ,
int>::type = 0>
95auto makeGridViewFunction(F&& f,
const GridView& gridView)
96 ->
decltype(makeAnalyticGridViewFunction(std::forward<F>(f), gridView))
98 return makeAnalyticGridViewFunction(std::forward<F>(f), gridView);
An entity set for all entities of given codim in a grid view.
Definition: gridviewentityset.hh:23
Definition: polynomial.hh:10