From c1afb75f787d9233075d2fe70caec1c88f67b051 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 21 Sep 2017 15:46:38 +0200 Subject: [PATCH] Fixup sum factorization of maxwell The previous changes to directly pass the visitor into the coefficient handler was messed up in one place - only being triggered by the downstream maxwell example. --- python/dune/perftool/sumfact/basis.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/dune/perftool/sumfact/basis.py b/python/dune/perftool/sumfact/basis.py index c1ca1a84..aa4b0dde 100644 --- a/python/dune/perftool/sumfact/basis.py +++ b/python/dune/perftool/sumfact/basis.py @@ -148,7 +148,8 @@ def pymbolic_coefficient_gradient(element, restriction, index, coeff_func, visit # If this sum factorization kernel was not used in the dry run we # just return 0 if vsf == 0: - return 0, None + visitor.indices = None + return 0 from dune.perftool.sumfact.realization import realize_sum_factorization_kernel var, insn_dep = realize_sum_factorization_kernel(vsf) @@ -189,7 +190,8 @@ def pymbolic_coefficient(element, restriction, index, coeff_func, visitor): # If this sum factorization kernel was not used in the dry run we # just return 0 if vsf == 0: - return 0, None + visitor.indices = None + return 0 # Add a sum factorization kernel that implements the evaluation of # the basis functions at quadrature points (stage 1) -- GitLab