Skip to content
Snippets Groups Projects
Commit e1ca5fbc authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Correctly iterate over children of MixedElement

The way we currently iterate over children of mxied elements
was plain wrong for nested mixed elements. The tests that
revealed this will soon follow.
parent 25ccefa8
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,7 @@ def _list_infos(expr, number, visitor): ...@@ -334,7 +334,7 @@ def _list_infos(expr, number, visitor):
elif visitor.measure == "interior_facet": elif visitor.measure == "interior_facet":
restrictions = (Restriction.NEGATIVE, Restriction.POSITIVE) restrictions = (Restriction.NEGATIVE, Restriction.POSITIVE)
for res in restrictions: for res in restrictions:
for ei in range(element.num_sub_elements() + 1): for ei in range(element.value_size()):
yield PDELabAccumulationInfo(element_index=ei, restriction=res) yield PDELabAccumulationInfo(element_index=ei, restriction=res)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment