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

Simplify displacement BC interface #1274

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

btalamini
Copy link
Collaborator

No description provided.

This allows the user to write one function and reuse it for each
of the desired components.
The bug was that the mfem entity id vectors (eg, mfem_edge_ids_)
were not populated, which means that the dof_list function was
unable to find any dofs. Even worse, no error was thrown, you
would just get an empty dof_list. The calculation would continue,
but with the dofs left out of whatever operations you used.

This commit fixes the bug by removing the repeated code in the
Entire* functions. Now they use the factory functions used
for domain creation with spatial predicates, and just send a
predicate that is always true. The only downside is that the
Entire* functions now need a template paramater for the spatial
dimension. Seems a good trade-off to me.
@btalamini btalamini added the WIP Work in progress label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant