Skip to content

Convenience method referenceElement for Entity.

Robert K requested to merge feature/referenceelement into master

This MR adds a convenience method referenceElement for the entity class. The following will now be possible:

const auto& refElem = referenceElement( entity );

// forwarding the call the referenceElement< ctype, dim > (entity.type() );

A similar method already exists for the Geometry, however, like the method type on Entity, building the geometry maybe expensive and therefore using the entities' type method is the appropriate choice here.

Merge request reports

Loading