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

Fix zero simplification in BaseForm.__add__ #262

Merged

Conversation

nbouziani
Copy link
Contributor

This PR fixes the rule for simplifying the sum of a BaseForm with a ufl.constantvalue.Zero. The rule used to be that any Zero that is added to a BaseForm is dismissed if that zero is scalar and doesn't have free indices. This logic, inherited from ufl.Expr objects, doesn't apply to BaseForm objects and should be removed.

rckirby and others added 30 commits February 27, 2020 11:19
@nbouziani nbouziani changed the title Fix baseform add zero simplification Fix zero simplification in BaseForm.__add__ Mar 26, 2024
@mscroggs mscroggs added this pull request to the merge queue Mar 26, 2024
Merged via the queue into FEniCS:main with commit b8fa300 Mar 26, 2024
13 checks passed
@mscroggs mscroggs deleted the fix_baseform_add_zero_simplification branch March 26, 2024 15:56
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

10 participants