From b95d150de5b21422ecbcd87d11a72a992d7e99f5 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Fri, 10 Jun 2016 13:39:02 +0200
Subject: [PATCH] [bugfix] choose correct index bound in trialfunction
 evaluation code

---
 python/dune/perftool/pdelab/basis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/dune/perftool/pdelab/basis.py b/python/dune/perftool/pdelab/basis.py
index b993e1e2..3ea24b34 100644
--- a/python/dune/perftool/pdelab/basis.py
+++ b/python/dune/perftool/pdelab/basis.py
@@ -314,7 +314,7 @@ def evaluate_trialfunction(element, name, restriction, component):
 
     temporary_variable(name, shape=())
     lfs = name_lfs(element, restriction, component)
-    index = lfs_iname(element, restriction, context='trial')
+    index = lfs_iname(sub_element, restriction, context='trial')
     basis = name_basis(sub_element, restriction)
     from dune.perftool.pdelab.argument import pymbolic_coefficient
     coeff = pymbolic_coefficient(lfs, index, restriction)
-- 
GitLab