diff --git a/tsfc/driver.py b/tsfc/driver.py index a24ba8cf..d5d665cd 100644 --- a/tsfc/driver.py +++ b/tsfc/driver.py @@ -350,6 +350,9 @@ def compile_expression_dual_evaluation(expression, to_element, *, # Translate to GEM kernel_cfg = dict(interface=builder, ufl_cell=domain.ufl_cell(), + # FIXME: change if we ever implement + # interpolation on facets. + integral_type="cell", argument_multiindices=argument_multiindices, index_cache={}, scalar_type=parameters["scalar_type"]) diff --git a/tsfc/fem.py b/tsfc/fem.py index 63bcb911..7dd79f6d 100644 --- a/tsfc/fem.py +++ b/tsfc/fem.py @@ -136,10 +136,9 @@ def preprocess(self, expr, context): :arg context: The translation context. :returns: A new UFL expression """ - is_facet = (self.interface.integration_dim != - self.interface.fiat_cell.get_dimension()) + ifacet = self.interface.integral_type.startswith("interior_facet") return preprocess_expression(expr, complex_mode=context.complex_mode, - do_apply_restrictions=is_facet) + do_apply_restrictions=ifacet) @property def config(self):