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

Merge pre-definitions across quadrature loops #446

Merged
merged 6 commits into from
Feb 5, 2022

Conversation

michalhabera
Copy link
Contributor

Since #419 blocked coefficients have a quadrature loop independent code to allow their unit-stride access. These "pre-definitions" must be merged across quadrature loops since they lead to name clash and compiler error otherwise.

This PR solves the above bug, it also improves pre-definitions re-use in some cases.

@IgorBaratta
Copy link
Member

Looks good to me.
But could you add a test (ufl file) that would catch this bug?

@michalhabera
Copy link
Contributor Author

Looks good to me. But could you add a test (ufl file) that would catch this bug?

Extended existing UFL file (would fail on main).

@michalhabera michalhabera merged commit f61e665 into main Feb 5, 2022
@michalhabera michalhabera deleted the michal/merge-predefinitions branch February 5, 2022 12:03
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