From 6ac8e4ffe501640bd6e1476bf6d448c4d3a2aab4 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 20 Dec 2016 18:26:12 +0100
Subject: [PATCH] Additional YaspGrid short cut for skeleton terms

---
 python/dune/perftool/sumfact/switch.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/dune/perftool/sumfact/switch.py b/python/dune/perftool/sumfact/switch.py
index 1f61c1bc..6b81cfaa 100644
--- a/python/dune/perftool/sumfact/switch.py
+++ b/python/dune/perftool/sumfact/switch.py
@@ -56,6 +56,11 @@ def decide_if_kernel_is_necessary(facedir_s, facemod_s, facedir_n, facemod_n):
     if not get_option("diagonal_transformation_matrix"):
         return True
 
+    # The PDELab machineries visit-once policy combined with Yasp avoids any visits
+    # with facemod_s being True
+    if facemod_s:
+        return False
+
     # A codim1 entity can never be on the upper resp. lower side of the ref element
     # in both inside and outside cell in a YaspGrid
     if facemod_n == facemod_s:
-- 
GitLab