Handle prescribed dofs in RHS of affine constraints #535
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Before this patch this was not handled correctly since the inhomogeneity for
u3
was taken asb3
, but it should really beb3 + f(t)
by substitutingu2
forf(t)
. Since we allow for time-dependent inhomogeneities this substitution has to be done at runtime and not duringclose!(::ConstraintHandler)
.Nested constraints, e.g.
are still not allowed but in the future this can be resolved in
close!(::ConstraintHandler)
toHowever, this patch checks for such nesting and raises an error instead of resulting in incorrect answers as is the case before.
Fixes #530.