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 is_cellwise_constant(ReferenceGrad(x)) #334

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pbrubeck
Copy link
Contributor

Adding a special case to detect that the reference gradient of a P1 field is cellwise constant.

@pbrubeck pbrubeck force-pushed the pbrubeck/cellwise-constant-grad branch 3 times, most recently from 2b35d50 to d3296f1 Compare December 18, 2024 16:47
@pbrubeck
Copy link
Contributor Author

Currently, we cannot iterate grad on a Coefficient more than p+1 times (where p is the polynomial degree of the Coefficient), as grad(piecewise_constant) gives a domain-less Zero

@pbrubeck pbrubeck marked this pull request as draft December 18, 2024 17:15
@pbrubeck pbrubeck force-pushed the pbrubeck/cellwise-constant-grad branch 3 times, most recently from f2d390e to 4e590ac Compare December 31, 2024 22:04
@pbrubeck pbrubeck force-pushed the pbrubeck/cellwise-constant-grad branch from 4e590ac to ac5b9d4 Compare December 31, 2024 22:08
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