diff --git a/dune/stuff/test/functions.hh b/dune/stuff/test/functions.hh index 21b6356328c2708d07caa1cb2db2d4fd0182a130..1d8d3f83d060d7d87f3c15cea9bc44a1bf395338 100644 --- a/dune/stuff/test/functions.hh +++ b/dune/stuff/test/functions.hh @@ -63,10 +63,12 @@ protected: template <class GridType> void dynamic_interface_check(const FunctionImp& func, GridType& grid) const { +#if HAVE_DUNE_GRID for (const auto& entity : Common::entityRange(grid.leafGridView())) std::unique_ptr<LocalfunctionType> local_func = func.local_function(entity); - std::string tp = func.type(); - std::string nm = func.name(); +#endif + std::string tp = func.type(); + std::string nm = func.name(); } // ... dynamic_interface_check(...) void copy_check(const FunctionImp& func) const