mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user