-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Remove switch/case from generated code #591
Conversation
…cx into chris/remove-switch-case
|
||
default_integral = form0.integrals(module.lib.exterior_facet)[0] | ||
default_integral = form0.form_integrals[integral_offsets[ex]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This here is implicitly tied to the ordering of the enum in DOLFINx, which I'm not sure is a good idea. See: #589 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order is explicitly defined in ufcx.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still an issue for whenever we generate the offsets (as that is based on strings in a for-loop, not the enum).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have annotated the point where this happens in ffcx.
This removes the function interfaces in ufcx for entity_dofs and form integrals, which are replaced with static data.