FEniCS / ufl

UFL - Unified Form Language
https://fenicsproject.org
GNU Lesser General Public License v3.0
104 stars 64 forks source link

Allow multiple subdomain data #120

Closed jpdean closed 2 years ago

jpdean commented 2 years ago

Currently, UFL checks that all integrals of a particular type in a form have the same subdomain data (using the UFL ID). I'm not sure this should be UFL's job. Instead, UFL should probably just collect the data into a list and let the finite element library (e.g. dolfinx) either check the data is the same or make use of the additional data. This PR addresses this.

This PR requires https://github.com/FEniCS/dolfinx/pull/2369