From e1ca5fbcd42e769af90bdb856693d9ccdaffc374 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 28 Aug 2017 16:51:01 +0200 Subject: [PATCH] [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. --- python/dune/perftool/pdelab/localoperator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py index 5a7d2e30..a1f8e044 100644 --- a/python/dune/perftool/pdelab/localoperator.py +++ b/python/dune/perftool/pdelab/localoperator.py @@ -334,7 +334,7 @@ def _list_infos(expr, number, visitor): elif visitor.measure == "interior_facet": restrictions = (Restriction.NEGATIVE, Restriction.POSITIVE) 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) -- GitLab