From b64ca374c30bad2ad3fd9604fcb69e384edc4b36 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 10 Apr 2018 11:02:18 +0200 Subject: [PATCH] make ebos compile with dune-fem being around for dune 2.6 dune 2.6 seems to expect a referenceElement(geo) free function. --- ebos/femcpgridcompat.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ebos/femcpgridcompat.hh b/ebos/femcpgridcompat.hh index 1fc536748..8c6bd1d50 100644 --- a/ebos/femcpgridcompat.hh +++ b/ebos/femcpgridcompat.hh @@ -46,7 +46,13 @@ namespace Dune template class EntityPointer; + } + template + auto referenceElement(const Dune::cpgrid::Geometry& geo) + -> decltype(referenceElement(geo.type())) + { + return referenceElement(geo.type()); } // specialization of dune-fem compatiblity functions for CpGrid, since CpGrid does not use the interface classes.