Skip to content

[bugfix] calculation of numTopologies was wrong for dim<0

Christian Engwer requested to merge fix-negative-dim into master

as the reference elements are used in generic code, the situation can happen, that one tries to access a reference-element of dim-1 (i.e. faces) for a 0d object. This would result in a reference-element for dim=-1, which has no topolgies. We fix this explicitly by checking the dim>=0.

Merge request reports