Skip to content

Support string subdomain IDs - #493

Merged
jorgensd merged 4 commits into
FEniCS:mainfrom
firedrakeproject:pbrubeck/string-subdomain-id
Sep 18, 2026
Merged

jorgensd merged 4 commits into
FEniCS:mainfrom
firedrakeproject:pbrubeck/string-subdomain-id

Conversation

@pbrubeck

Copy link
Copy Markdown
Contributor

No description provided.

@jorgensd

Copy link
Copy Markdown
Member

Is there a particular use-case you have in mind for string domain ids?
In general, I think we should revisit the whole ufl.Measure implementation, as it seems a bit limiting.
Especially the integral_types being strings rather than a typing Protocol.
Whenever we add strings we add tons of undefined behavior (or undocumented behavior).

@pbrubeck

Copy link
Copy Markdown
Contributor Author

Is there a particular use-case you have in mind for string domain ids?
In general, I think we should revisit the whole ufl.Measure implementation, as it seems a bit limiting.
Especially the integral_types being strings rather than a typing Protocol.
Whenever we add strings we add tons of undefined behavior (or undocumented behavior).

I can update docstrings. I'm fine if this is revisited. We should avoid breaking API.

firedrakeproject/firedrake#5199

@jorgensd

Copy link
Copy Markdown
Member

I guess this is ok to do, as very little of the functionality with UFL relies on a specific typing literal.

@jorgensd
jorgensd added this pull request to the merge queue Sep 18, 2026
Merged via the queue into FEniCS:main with commit d33ce52 Sep 18, 2026
11 checks passed
pbrubeck added a commit to firedrakeproject/firedrake that referenced this pull request Nov 26, 2026
FEniCS/ufl#493 has been merged, so CI's UFL main already supports
string subdomain ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants