Skip to content

Commit b0f9734

Browse files
authored
Remove quadrature permutation on element tables of codim-1 (#717)
* Do not add quadrature permutations for codim 1 interior facet tables, as the input has a consistent orientation from DOLFINx * Ruff formatting * More ruff
1 parent 8de75ef commit b0f9734

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ffcx/ir/elementtables.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def build_optimized_tables(
365365
# needed because a cell may see its sub-entities as being oriented
366366
# differently to their global orientation
367367
if integral_type == "interior_facet" or (is_mixed_dim and codim == 0):
368-
if tdim == 1:
368+
if tdim == 1 or codim == 1:
369+
# Do not add permutations if codim-1 as facets have already gotten a global
370+
# orientation in DOLFINx
369371
t = get_ffcx_table_values(
370372
quadrature_rule.points,
371373
cell,

0 commit comments

Comments
 (0)