Function Dune::XT::Functions::make_grid_function

Function template Dune::XT::Functions::make_grid_function

template<class Element_or_GridView, size_t d, size_t r, size_t rC, class R>
auto Dune::XT::Functions::make_grid_function(const FunctionInterface<d, r, rC, R> &func)

Creates a GridFunction wrapping func, deducing the element type from the explicitly given element or grid view type.

Function template Dune::XT::Functions::make_grid_function

template<size_t d, size_t r, size_t rC, class R, class GridView>
GridFunction<Grid::extract_entity_t<GridView>, r, rC, R> Dune::XT::Functions::make_grid_function(const FunctionInterface<d, r, rC, R> &func, const GridView&)

Creates a GridFunction wrapping func, deducing the element type from the given grid view.