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

Bugfix: Coefficient for empty attr_list #176

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

hughcars
Copy link
Collaborator

Description of changes:
#166 introduced an issue where coefficients with matching attribute lists, might have different size K, if all the attributes are -1. This is a consequence of these lines where a coefficient goes from size zero to size 1, even if there were no local attributes associated. This triggers these lines if attr_mat is all -1, but the incoming coefficient is of size zero. This can occur if one rank does not have any piece of the relevant geometry. The fix is if attr_list is entry in adding a coefficient, to do nothing.

@sebastiangrimberg sebastiangrimberg marked this pull request as ready for review January 25, 2024 22:46
@sebastiangrimberg sebastiangrimberg self-requested a review January 25, 2024 22:47
@hughcars hughcars merged commit 0f8fbfe into main Jan 26, 2024
17 checks passed
@hughcars hughcars deleted the hughcars/coefficient-attr-bugfix branch January 26, 2024 14:35
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.

2 participants