From a269a5d7f4063223362d3aed03ead67fa543a7cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de>
Date: Fri, 17 Nov 2017 12:44:06 +0100
Subject: [PATCH] Small bugfix

---
 python/dune/perftool/pdelab/driver/error.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/dune/perftool/pdelab/driver/error.py b/python/dune/perftool/pdelab/driver/error.py
index 48bfe898..86299f18 100644
--- a/python/dune/perftool/pdelab/driver/error.py
+++ b/python/dune/perftool/pdelab/driver/error.py
@@ -147,8 +147,10 @@ def treepath_to_index(element, treepath, offset=0):
 def accumulate_L2_squared():
     element = get_trial_element()
     if isinstance(element, MixedElement):
-        tree_pathes = list(map(int, get_option("l2error_tree_path").split(',')))
-        assert len(tree_pathes) == element.value_size()
+        tree_pathes = (True,) * element.value_size()
+        if get_option("l2error_tree_path") is not None:
+            tree_pathes = list(map(int, get_option("l2error_tree_path").split(',')))
+            assert len(tree_pathes) == element.value_size()
         for i, path in enumerate(tree_pathes):
             if path:
                 _accumulate_L2_squared(get_treepath(element, i))
-- 
GitLab