From c4391c12e85747fc1093baf7c4c91f10c6e5b4ba Mon Sep 17 00:00:00 2001 From: ksagiyam Date: Fri, 15 Nov 2024 23:00:06 +0000 Subject: [PATCH] Remove cell restriction check --- ufl/algorithms/compute_form_data.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ufl/algorithms/compute_form_data.py b/ufl/algorithms/compute_form_data.py index 476558d47..a2cd409c1 100644 --- a/ufl/algorithms/compute_form_data.py +++ b/ufl/algorithms/compute_form_data.py @@ -268,14 +268,6 @@ def compute_form_data( The default arguments configured to behave the way old FFC expects. """ - # Currently, only integral_type="cell" can be used with MixedMesh. - for integral in form.integrals(): - if integral.integral_type() != "cell": - all_domains = extract_domains(integral.integrand(), expand_mixed_mesh=False) - if any(isinstance(m, MixedMesh) for m in all_domains): - raise NotImplementedError(""" - Only integral_type="cell" can be used with MixedMesh""") - # TODO: Move this to the constructor instead self = FormData()