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

Hanging nodes constraint fix for linear problems #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bsumirak
Copy link
Member

Fix for issue #47.
It should be noted, that, due to the interface changes made here, minor modifications will be needed in some plugins as well.
More importantly, note the comment in the commit message:

ATTENTION: Unlike before, it is now necessary to call adjust_solution() once after
the solver is finished to enforce the hanging node constraints in linear problems.
Otherwise, the DoFs of hanging nodes will have value 0 in the solution.

I already have commits to update several apps and plugins.

In cases where the hanging dof i had a connection to dof j in the sparse matrix,
but not j to i (asymmetric matrix) the constraint did not work properly.
…blems

The implementation no longer distinguishes the linear from the non-linear case.
Both handle the constrained nodes by effectively taking them out of the computation
by making sure that the defect and corrections of constrained DoFs are always zero
and their value in the solution does not change.
To make this possible in the linear assembling case, the initial solution had to be
introduced as an additional argument to the assembling function.

ATTENTION: Unlike before, it is now necessary to call adjust_solution() once after
the solver is finished to enforce the hanging node constraints in linear problems.
Otherwise, the DoFs of hanging nodes will have value 0 in the solution.
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.

None yet

1 participant