-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add function spaces check in linear solver #3214
base: master
Are you sure you want to change the base?
Conversation
@nbouziani what is the status of this PR? It is failing some tests. |
@@ -52,7 +52,8 @@ def poisson(h, degree=2): | |||
# Assembling matrix | |||
A = assemble(a, bcs=bc) | |||
b = assemble(l) |
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.
b = assemble(l) | |
b = assemble(l, bcs=bc, zero_bc_nodes=True) |
@@ -382,7 +382,8 @@ We will now show how to solve the Poisson problem on a high-order mesh, of order | |||
bc = DirichletBC(V, 0.0, [1]) | |||
A = assemble(a, bcs=bc) | |||
b = assemble(l) |
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.
b = assemble(l) | |
b = assemble(l, bcs=bc, zero_bc_nodes=True) |
b_riesz = b.riesz_representation(riesz_map="l2") | ||
bc.apply(b_riesz) |
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.
b_riesz = b.riesz_representation(riesz_map="l2") | |
bc.apply(b_riesz) |
b_riesz = b.riesz_representation(riesz_map="l2") | ||
bc.apply(b_riesz) |
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.
b_riesz = b.riesz_representation(riesz_map="l2") | |
bc.apply(b_riesz) |
@@ -96,7 +97,8 @@ def poisson3D(h, degree=2): | |||
# Assembling matrix | |||
A = assemble(a, bcs=bc) | |||
b = assemble(l) |
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.
b = assemble(l) | |
b = assemble(l, bcs=bc, zero_bc_nodes=True) |
b_riesz = b.riesz_representation(riesz_map="l2") | ||
bc.apply(b_riesz) |
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.
b_riesz = b.riesz_representation(riesz_map="l2") | |
bc.apply(b_riesz) |
Closing, as superseded by #3754 |
Description
This PR: 1) updates the
LinearSolver
's check on the solution and the rhs, and 2) fixes__eq__
for function spaces 3) fixes all the implications of 2), i.e. all bugs that would have been spotted with a proper function space equality check. This fixes the issues #3203 and #3130.