make ebos compile with dune-fem being around for dune 2.6

dune 2.6 seems to expect a referenceElement(geo) free function.
This commit is contained in:
Andreas Lauser
2018-04-10 11:02:18 +02:00
parent ede2ef35af
commit b64ca374c3

View File

@@ -46,7 +46,13 @@ namespace Dune
template <int codim>
class EntityPointer;
}
template <int dim, int cdim>
auto referenceElement(const Dune::cpgrid::Geometry<dim, cdim>& geo)
-> decltype(referenceElement<double, dim>(geo.type()))
{
return referenceElement<double, dim>(geo.type());
}
// specialization of dune-fem compatiblity functions for CpGrid, since CpGrid does not use the interface classes.