Use convenience functions referenceElement(entity) / referenceElement(geo)
Since Dune 2.6 there is convenience functions referenceElement
(free functions) to construct reference elements from entitites (dune/grid/common/entity.hh
) or geometries (dune/grid/common/geometry.hh
).
This can replace the more verbose and less readable calls to ReferenceElements::general()
we currently use.