`ufl.replace_integral_domains` was removed

Hi,

for UFL version > 2023.1.1 the function replace_integral_domains does not exist anymore.
I think it was removed in PR163 by @mscroggs .

In the past, this function could be used to reconstruct a given Form on a submesh (i.e. restricting the form to a submesh). Is there another function or what would be the recommended way of performing such a task with UFL version >= 2023.2.0?

Best,
Philipp

1 Like

We are working on a proper solution to this problem (creating generic forms and then attaching metadata, e.g. domains, coefficients to the form) in Use pure UFL/basix.ufl forms in compilation in DOLFINx Python interface · Issue #3111 · FEniCS/dolfinx · GitHub so we don’t plan to add back in replace_integral_domains.

Meanwhile in the current version you could copy our old implementation of replace_integral_domains for your own use.

1 Like

Okay. Thank you for the quick response.

I already did that :slight_smile: