Skip to content

Commit

Permalink
Fix order of offsets. This behavior is very implicit.
Browse files Browse the repository at this point in the history
Introduced in: FEniCS/dolfinx#2744
  • Loading branch information
jorgensd committed Aug 14, 2023
1 parent 0029c21 commit 2fda42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ffcx/codegeneration/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def generator(ir, options):
integrals = []
integral_ids = []
integral_offsets = [0]
for itg_type in ("cell", "interior_facet", "exterior_facet"):
# NOTE: This ordering is dependent of the enums in dolfinx::fem::IntegralType
for itg_type in ("cell", "exterior_facet", "interior_facet"):
for key, name in ir.integral_names[itg_type].items():
for subdomain_id in ir.subdomain_ids[itg_type][key]:
integrals += [L.AddressOf(L.Symbol(name))]
Expand Down

0 comments on commit 2fda42c

Please sign in to comment.