Skip to content

Add method partitionType(i,codim) to entity

Simon Praetorius requested to merge feature/subpartitiontype into master

Summary

The PartitionType is a property of all entities, by the method entity.partitionType(). This is actually just an enum. Whenever you want to access the partition type of a sub-entity, you need to know the codimenion of that subentity at compiletime, i.e., you need to do entity.template subEntity<codim>(i).partitionType(). This is very complicated, especially if the codimension is not known at compiletime. Then a complicate compiletime switch need to be invoked in order to call this simple method. Maybe some grids have this information easier accessible?

This MR adds an interface method partitionType(i,codim) (similar to type in the referenceelement) and provides a default implementation plus some specializations for a few classes where the partition type of sub-entities can be accessed more easily.

ToDo

  • Add Changelog entry
Edited by Simon Praetorius

Merge request reports

Loading