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

MixedFunctionSpace: interpolate and restrict #3868

Merged
merged 14 commits into from
Dec 6, 2024

Conversation

pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Nov 18, 2024

Description

This PR enables solving mixed probelms with restrict=True by introducing two main features:

  1. We implemented interpolation of flat UFL expressions or Firedrake Functions onto a MixedFunctionSpace. We don't support assemble(interpolate(TestFunction(V), W)) yet.

  2. We implemented restricted_function_space that returns an equivalent of RestrictedFunctionSpace constructed from a MixedFunctionSpace and a list of DirichletBCs to infer the individual boundary_sets of each subspace.

The PR includes basic tests for these new features.

Copy link

github-actions bot commented Nov 18, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8128 ran6654 passed1474 skipped0 failed

@connorjward
Copy link
Contributor

@pbrubeck FYI I think I may have accidentally broken the CI runners. I am investigating.

Copy link

github-actions bot commented Nov 18, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8134 ran7459 passed675 skipped0 failed

@pbrubeck pbrubeck force-pushed the pbrubeck/restricted-mixed branch from 33efcd0 to cfff93c Compare November 18, 2024 17:39
@pbrubeck pbrubeck requested a review from ksagiyam November 18, 2024 17:39
firedrake/functionspace.py Outdated Show resolved Hide resolved
@pbrubeck pbrubeck changed the title RestrictedFunctionSpace(MixedFunctionSpace) MixedFunctionSpace: interpolate and restrict Nov 20, 2024
dham
dham previously approved these changes Dec 4, 2024
@pbrubeck pbrubeck enabled auto-merge (squash) December 5, 2024 19:54
@pbrubeck pbrubeck merged commit 3285cfc into master Dec 6, 2024
18 checks passed
@pbrubeck pbrubeck deleted the pbrubeck/restricted-mixed branch December 6, 2024 10:24
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.

4 participants