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

Get value_shape from FunctionSpace #3862

Merged
merged 15 commits into from
Nov 15, 2024
Merged

Get value_shape from FunctionSpace #3862

merged 15 commits into from
Nov 15, 2024

Conversation

pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Nov 12, 2024

Description

  1. Replace V.ufl_element().value_shape by V.value_shape,
  2. firedrake.FunctionSpace.value_size has been redefined to agree with ufl.FunctionSpace.value_size = numpy.prod(value_shape, int), so the old behaviour gets renamed as firedrake.FunctionSpace.block_size

Depends on:
firedrakeproject/ufl#52
FInAT/FInAT#118
firedrakeproject/tsfc#307

Copy link

github-actions bot commented Nov 12, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8081 ran6500 passed1581 skipped0 failed

Copy link

github-actions bot commented Nov 12, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8087 ran7298 passed789 skipped0 failed

@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch 2 times, most recently from e33bd64 to 4c5f7db Compare November 12, 2024 15:39
firedrake/interpolation.py Outdated Show resolved Hide resolved
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch 2 times, most recently from a2537dc to 20342a6 Compare November 13, 2024 10:26
@dham dham marked this pull request as draft November 13, 2024 16:42
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch 2 times, most recently from b76ee5e to 3bdaba7 Compare November 13, 2024 22:56
Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Generally this looks great. @ksagiyam can you also give this a scan to make sure it's the right thing.

firedrake/pointquery_utils.py Outdated Show resolved Hide resolved
firedrake/pointquery_utils.py Outdated Show resolved Hide resolved
firedrake/pointquery_utils.py Outdated Show resolved Hide resolved
tests/regression/test_2dcohomology.py Show resolved Hide resolved
tests/regression/test_ensembleparallelism.py Show resolved Hide resolved
firedrake/assemble.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ksagiyam ksagiyam left a comment

Choose a reason for hiding this comment

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

Thanks!

firedrake/interpolation.py Show resolved Hide resolved
firedrake/mg/embedded.py Outdated Show resolved Hide resolved
ksagiyam
ksagiyam previously approved these changes Nov 15, 2024
@pbrubeck pbrubeck marked this pull request as ready for review November 15, 2024 15:28
@ksagiyam
Copy link
Contributor

@pbrubeck pbrubeck merged commit ed826a5 into master Nov 15, 2024
12 checks passed
@pbrubeck pbrubeck deleted the pbrubeck/value_shape branch November 15, 2024 20:11
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.

3 participants