-
-
Notifications
You must be signed in to change notification settings - Fork 215
Mixed dimension assembly in C++ and form independence for subdomains #3262
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
Conversation
* Add subdomains to form creation independent of mesh * Try some fixes * Try fixing wrapper * Fix subdomain data packing
Required for more advanced integration sets that are outside the standard compute_integral_data way.
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.
Looks good! Just a few small comments :)
""" | ||
sd = form.ufl_form.subdomain_data() |
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.
Nice to get rid of this mess!
Maybe the description could be updated to remove the comment on shared pointers? |
Addressed and all other comments have been addressed as well. |
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.
Looks good! :)
…EniCS#3262) * Modify interface of all C++ demos * Add newline * Fix C++ unit tests * Update create form * Update code to use self made ptr * Dokken/subdomain form independent (FEniCS#3287) * Add subdomains to form creation independent of mesh * Try some fixes * Try fixing wrapper * Fix subdomain data packing * ruff fix * Update binding * Fix docstrings and let user pass in integration entities. Required for more advanced integration sets that are outside the standard compute_integral_data way. * Address Joe's comments * Rename * Update docs * Rename test function --------- Co-authored-by: Chris Richardson <[email protected]>
This PR exposes the mixed (dimensional) assembly functions to C++ and adds a demo.
Would resolve #3113.
This PR also simplifies the newly created mesh independent form creation (#3263) such that the user can send in integration entities.
Added additional test that exposes this feature in the context of sub-meshes for a rank-1 tensor.