diff --git a/ebos/femcpgridcompat.hh b/ebos/femcpgridcompat.hh index afe6078af..a4c3100db 100644 --- a/ebos/femcpgridcompat.hh +++ b/ebos/femcpgridcompat.hh @@ -46,13 +46,6 @@ template class EntityPointer; } -#if DUNE_VERSION_NEWER(DUNE_FEM, 2, 6) -template -auto referenceElement(const Dune::cpgrid::Geometry& geo) - -> decltype(referenceElement(geo.type())) -{ return referenceElement(geo.type()); } -#endif - // specialization of dune-fem compatiblity functions for CpGrid, since CpGrid does not use the interface classes. namespace Fem { @@ -61,6 +54,7 @@ namespace Fem { // make_entity for CpGrid entities // //////////////////////////////////////////////////////////// +#if ! DUNE_VERSION_NEWER(DUNE_GRID, 2, 6) template inline Dune::cpgrid::Entity make_entity(const Dune::cpgrid::EntityPointer& entityPointer) { return *entityPointer; } @@ -68,6 +62,7 @@ inline Dune::cpgrid::Entity make_entity(const Dune::cpgrid::EntityPointer template inline Dune::cpgrid::Entity make_entity(Dune::cpgrid::Entity entity) { return std::move(entity); } +#endif //////////////////////////////////////////////////////////// //