-
Notifications
You must be signed in to change notification settings - Fork 92
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
Unify Dirichlets and affine constraints #529
Conversation
f00a07a
to
0de7278
Compare
Codecov ReportBase: 92.36% // Head: 92.31% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #529 +/- ##
==========================================
- Coverage 92.36% 92.31% -0.05%
==========================================
Files 22 22
Lines 3783 3776 -7
==========================================
- Hits 3494 3486 -8
- Misses 289 290 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 approve
This patch unifies the representation of `Dirichlet` and `AffineConstraint`s in the `ConstraintHandler`. `Dirichlet` is now more or less just special case of `AffineConstraint`. As a result, conflicting constraints on DoFs are handled more consistently: the constraint added last to the `ConstraintHandler` now always override any previous constraints. Conflicting constraints could previously cause problems when a DoF where prescribed by both `Dirichlet` and `AffineConstraint`. Co-authored-by: Elias <elias.isak.borjesson@gmail.com> Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
73266c6
to
785c23a
Compare
Currently, it is possible for Dirichlet and affine constraints to lock the same dof. This PR unifies Dirichlets and Affine constraints and makes it impossible for a dof to be locked by both affine and Dirichlet constraints.
If two conflicting constraints are added (prescribing the same dof), the most recently added constraint will be used.