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

Replace not isinstance(element, MixedElement) with element.num_sub_elements == 0 #122

Merged
merged 6 commits into from
Jan 4, 2023

Conversation

mscroggs
Copy link
Member

@mscroggs mscroggs commented Sep 26, 2022

This allows me to use control the behaviour of (eg) TrialFunctions for custom elements.

As a side effect, this may change the result of calling TrailFunctions on VectorElements and TensorElements, although this new behaviour is probably what I'd have expected it to do. Edit: VectorElement inherits from MixedElement, so the behaviour probably hasn't changed

@dham
Copy link
Collaborator

dham commented Sep 29, 2022

I think this looks fine. I have started firedrakeproject/firedrake#2568 running just to make sure.

@dham
Copy link
Collaborator

dham commented Oct 10, 2022

I think this looks fine. I have started firedrakeproject/firedrake#2568 running just to make sure.

So it turns out that the sobolev spaces change (which hadn't yet been merged to Firedrake) failed to set the sobolev_space method on BrokenElement which causes this to fail Firedrake tests. I am testing a fix.

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.

None yet

2 participants