Skip to content

Commit 2fda42c

Browse files
committed
Fix order of offsets. This behavior is very implicit.
Introduced in: FEniCS/dolfinx#2744
1 parent 0029c21 commit 2fda42c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ffcx/codegeneration/form.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def generator(ir, options):
9898
integrals = []
9999
integral_ids = []
100100
integral_offsets = [0]
101-
for itg_type in ("cell", "interior_facet", "exterior_facet"):
101+
# NOTE: This ordering is dependent of the enums in dolfinx::fem::IntegralType
102+
for itg_type in ("cell", "exterior_facet", "interior_facet"):
102103
for key, name in ir.integral_names[itg_type].items():
103104
for subdomain_id in ir.subdomain_ids[itg_type][key]:
104105
integrals += [L.AddressOf(L.Symbol(name))]

0 commit comments

Comments
 (0)