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

Fieldsplit: replace empty Forms with ZeroBaseForm #3947

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

pbrubeck
Copy link
Contributor

@pbrubeck pbrubeck commented Dec 30, 2024

Description

This PR addresses the consequences of FEniCS/ufl#336, which introduces more agressive simplifications that cause empty forms to be returned when extracting a subblock that is supposed to be zero (e.g. the pressure block in Stokes).

Here empty Jacobians are replaced with ZeroBaseForm, as we require two Arguments in order for the adjoint to make sense.

The simplifications should also speed up code generation and even reduce flop counts in some cases.

Copy link

github-actions bot commented Dec 30, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8161 ran7486 passed675 skipped0 failed

Copy link

github-actions bot commented Dec 30, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8155 ran6681 passed1474 skipped0 failed

@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch from cf743a1 to be6a7b4 Compare January 2, 2025 00:43
@pbrubeck pbrubeck changed the title DO NOT MERGE Fieldsplit: replace empty Forms with ZeroBaseForm Jan 2, 2025
@pbrubeck pbrubeck marked this pull request as ready for review January 2, 2025 01:07
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch 2 times, most recently from e0c7ba1 to 00b80e4 Compare January 2, 2025 02:07
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch 2 times, most recently from 3f399e5 to bf10f91 Compare January 2, 2025 15:46
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch from bf10f91 to d82039d Compare January 2, 2025 16:00
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch 2 times, most recently from 730e299 to 35638df Compare January 3, 2025 19:54
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch from 35638df to 3d06fc5 Compare January 3, 2025 20:32
@pbrubeck pbrubeck force-pushed the pbrubeck/simplify-indexed branch from d7f0a1b to 2a0c03b Compare January 7, 2025 01:33
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.

1 participant