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

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.
parent d30e55f5
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,8 @@ def pymbolic_coefficient_gradient(element, restriction, index, coeff_func, visit ...@@ -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 # If this sum factorization kernel was not used in the dry run we
# just return 0 # just return 0
if vsf == 0: if vsf == 0:
return 0, None visitor.indices = None
return 0
from dune.perftool.sumfact.realization import realize_sum_factorization_kernel from dune.perftool.sumfact.realization import realize_sum_factorization_kernel
var, insn_dep = realize_sum_factorization_kernel(vsf) var, insn_dep = realize_sum_factorization_kernel(vsf)
...@@ -189,7 +190,8 @@ def pymbolic_coefficient(element, restriction, index, coeff_func, visitor): ...@@ -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 # If this sum factorization kernel was not used in the dry run we
# just return 0 # just return 0
if vsf == 0: if vsf == 0:
return 0, None visitor.indices = None
return 0
# Add a sum factorization kernel that implements the evaluation of # Add a sum factorization kernel that implements the evaluation of
# the basis functions at quadrature points (stage 1) # the basis functions at quadrature points (stage 1)
......
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