Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Feb 14, 2025
1 parent 329a8dc commit 2de93a8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ffcx/codegeneration/C/integrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ def generator(ir: IntegralIR, options):
f".tabulate_tensor_{np_scalar_type} = tabulate_tensor_{factory_name},"
)

element_hash = (
0
if ir.expression.coordinate_element_hash is None
else ir.expression.coordinate_element_hash
)

assert ir.expression.coordinate_element_hash is not None
implementation = ufcx_integrals.factory.format(
factory_name=factory_name,
enabled_coefficients=code["enabled_coefficients"],
Expand All @@ -88,7 +83,7 @@ def generator(ir: IntegralIR, options):
needs_facet_permutations="true" if ir.expression.needs_facet_permutations else "false",
scalar_type=dtype_to_c_type(options["scalar_type"]),
geom_type=dtype_to_c_type(dtype_to_scalar_dtype(options["scalar_type"])),
coordinate_element_hash=f"UINT64_C({element_hash})",
coordinate_element_hash=f"UINT64_C({ir.expression.coordinate_element_hash})",
tabulate_tensor_float32=code["tabulate_tensor_float32"],
tabulate_tensor_float64=code["tabulate_tensor_float64"],
tabulate_tensor_complex64=code["tabulate_tensor_complex64"],
Expand Down

0 comments on commit 2de93a8

Please sign in to comment.