From 7bf9c3f016c35f1047a3b5acc8a2e4943b63221b Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 10 Dec 2018 14:51:55 +0100 Subject: [PATCH] Fix sumfact_regular_jacobians option --- python/dune/codegen/pdelab/localoperator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/dune/codegen/pdelab/localoperator.py b/python/dune/codegen/pdelab/localoperator.py index db5ca426..95c946b5 100644 --- a/python/dune/codegen/pdelab/localoperator.py +++ b/python/dune/codegen/pdelab/localoperator.py @@ -942,6 +942,8 @@ def generate_jacobian_kernels(form, original_form): if get_form_option("sumfact"): was_sumfact = True if get_form_option("sumfact_regular_jacobians"): + old_geometry_mixins = get_form_option("geometry_mixins") + set_form_option("geometry_mixins", "generic") set_form_option("sumfact", False) for measure in set(i.integral_type() for i in jacform.integrals()): if not measure_is_enabled(measure): @@ -966,6 +968,7 @@ def generate_jacobian_kernels(form, original_form): if get_form_option("sumfact_regular_jacobians"): if was_sumfact: set_form_option("sumfact", True) + set_form_option("geometry_mixins", old_geometry_mixins) return operator_kernels -- GitLab