diff --git a/python/dune/perftool/sumfact/switch.py b/python/dune/perftool/sumfact/switch.py index 1f61c1bc8d02708a8383ae7fd196d2551db02e86..6b81cfaa8a0d451b96b0f4cd96965077c5cdfabb 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: