Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emmarothwell1/restricted function space #252

Merged

Conversation

dham
Copy link
Collaborator

@dham dham commented Jan 30, 2024

Add support for function space labels in order to support symbolically different function spaces on the same element and domain. An example are restricted function spaces.

rckirby and others added 30 commits February 27, 2020 11:19
@@ -50,11 +50,16 @@ def __init__(self, domain, element):
else:
if element.cell != domain_cell:
raise ValueError("Non-matching cell of finite element and domain.")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@@ -80,6 +85,7 @@ def _ufl_hash_data_(self, name=None):
name = name or "BaseFunctionSpace"
domain = self.ufl_domain()
element = self.ufl_element()
bdata = self.label()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we don't need this variable, just directly use self.label below.


def _ufl_signature_data_(self, renumbering, name=None):
"""UFL signature data."""
name = name or "BaseFunctionSpace"
domain = self.ufl_domain()
element = self.ufl_element()
bdata = self.label()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above.

ufl/functionspace.py Outdated Show resolved Hide resolved
@dham dham marked this pull request as ready for review February 1, 2024 15:00
@mscroggs mscroggs added this pull request to the merge queue Feb 2, 2024
Merged via the queue into FEniCS:main with commit 109aa7d Feb 2, 2024
13 checks passed
@mscroggs mscroggs deleted the emmarothwell1/restricted_function_space branch February 2, 2024 12:09
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.