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
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 20342a6 to adb93f4 Compare November 13, 2024 10:47
@dham dham marked this pull request as draft November 13, 2024 16:42
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 5ed339e to 47253ea Compare November 13, 2024 17:33
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch 2 times, most recently from b76ee5e to 3bdaba7 Compare November 13, 2024 22:56
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 3bdaba7 to d6bb2ed Compare November 14, 2024 00:11
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from d6bb2ed to bb5a9bd Compare November 14, 2024 01:11
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 11c8ba1 to 0e4c04f Compare November 14, 2024 17:14
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 38e7f78 to a07587e Compare November 15, 2024 11:30
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
@connorjward connorjward requested a review from ksagiyam November 15, 2024 12:13
firedrake/assemble.py Outdated Show resolved Hide resolved
@pbrubeck pbrubeck force-pushed the pbrubeck/value_shape branch from 2752f93 to a674ccf Compare November 15, 2024 12:39
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
connorjward pushed a commit that referenced this pull request Nov 25, 2024
* Get value_shape from FunctionSpace

* Define FunctionSpace.block_size as the number of dofs per node

* sort_domains

---------

Co-authored-by: ksagiyam <[email protected]>
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