-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle prescribed dofs in RHS of affine constraints
This patch fixes affine constraints with prescribed dofs in the RHS. In particular, we allow dofs that are prescribed by just an inhomogeneity (i.e. DBC) but disallow "nesting" affine constraints. Concretely, consider e.g. the following two constraints: u2 = f(t) u3 = u2 + b3 Before this patch this was not handled correctly since the inhomogeneity for u3 was taken as b3, but it should really be b3 + f(t) by substituting u2 for f(t). Since we allow for time-dependent inhomogeneities this substitution can not be done in close!(::ConstraintHandler) and instead the effective inhomogeneity is computed in update!. Nested constraints, e.g. u2 = u3 u3 = u5 are still not allowed but in the future this can be resolved in close!(::ConstraintHandler) to u2 = u5 u3 = u5 However, this patch checks for such nesting and raises an error instead of resulting in incorrect answers as is the case before. Fixes #530.
- Loading branch information
1 parent
dd88d1e
commit d68f9a1
Showing
4 changed files
with
191 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters