From 3a157644258e358f05ad30b3d3c13c87396f50ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de>
Date: Tue, 10 Jul 2018 10:45:57 +0200
Subject: [PATCH] Do not set constant/diagonal_transformation for unstructured
 grids

---
 python/dune/perftool/pdelab/localoperator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py
index 727b7ae3..5e903206 100644
--- a/python/dune/perftool/pdelab/localoperator.py
+++ b/python/dune/perftool/pdelab/localoperator.py
@@ -740,7 +740,7 @@ def local_operator_default_settings(operator, form):
 
     # Set some options!
     from dune.perftool.pdelab.driver import isQuadrilateral
-    if isQuadrilateral(form.arguments()[0].ufl_element().cell()):
+    if isQuadrilateral(form.arguments()[0].ufl_element().cell()) and not get_option("grid_unstructured"):
         from dune.perftool.options import set_form_option
         # For Yasp Grids the jacobian of the transformation is diagonal and constant on each cell
         set_form_option('diagonal_transformation_matrix', True)
-- 
GitLab