Skip to content

Conversation

@btalamini
Copy link
Member

The type_ attribute of Domain, which tracks whether the domain is of boundary elements or bulk elements, was not being set for domains created from Boolean operations. The type should have passed from the operands to the created Domain (and the operator should check that both operands have matching type).

This PR does the following:

  • adds tests that detect the bug
  • removes the default value for the type_ attribute in the constructor, forcing each of the factory functions to explicitly set it
  • fixes the bug, and puts in the missing type_ check.

Fixes #1281

@btalamini
Copy link
Member Author

/style

@btalamini btalamini merged commit d4aacdc into develop Dec 6, 2024
2 checks passed
@btalamini btalamini deleted the talamini/bugfix/domain_element_type branch December 6, 2024 04: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.

Boundary domains created with set operations have the wrong type

4 participants