From 70cdfc1822f4ed8e2c461de8e9e84bff4c12e96e Mon Sep 17 00:00:00 2001 From: Marcel Koch <marcel.koch@uni-muenster.de> Date: Thu, 30 Nov 2017 11:17:16 +0100 Subject: [PATCH] use the backend selector for the jacobian inverse transposed --- python/dune/perftool/blockstructured/geometry.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/dune/perftool/blockstructured/geometry.py b/python/dune/perftool/blockstructured/geometry.py index 58512145..951ada69 100644 --- a/python/dune/perftool/blockstructured/geometry.py +++ b/python/dune/perftool/blockstructured/geometry.py @@ -1,10 +1,10 @@ -from dune.perftool.generation import (backend, +from dune.perftool.generation import (get_backend, temporary_variable, instruction) from dune.perftool.tools import get_pymbolic_basename -from dune.perftool.options import get_option +from dune.perftool.options import (get_option, + option_switch) from dune.perftool.pdelab.geometry import (name_jacobian_determinant, - name_jacobian_inverse_transposed, local_dimension, apply_to_global_transformation, name_facet_jacobian_determinant) @@ -20,8 +20,9 @@ def pymbolic_jacobian_determinant(): # scale Jacobian according to the order of the blockstructure def pymbolic_jacobian_inverse_transposed(i, j, restriction): + name_jit = get_backend(interface="name_jit", selector=option_switch("constant_transformation_matrix"))(restriction) return prim.Product((get_option("number_of_blocks"), - prim.Subscript(prim.Variable(name_jacobian_inverse_transposed(restriction)), (j, i)))) + prim.Subscript(prim.Variable(name_jit), (j, i)))) # scale determinant according to the order of the blockstructure -- GitLab