- Thank you received: 0
AssertionError - solvers.CG
- creativeworker
- Topic Author
- Offline
- Senior Member
Less
More
5 years 4 days ago #2141
by creativeworker
AssertionError - solvers.CG was created by creativeworker
Hello,
I updated my NGSolve Environment to 1909 and now I get an AssertionError (# either pre or freedofs must be given) in the solvers.CG method.
Indeed I use my solver without a preconditioner: solvers.CG(mat=a.mat, rhs=res, sol=du, tol=1E-06, maxsteps = 100)
What do I have to change to update to the new behavior?
Thanks for your help in advance!
I updated my NGSolve Environment to 1909 and now I get an AssertionError (# either pre or freedofs must be given) in the solvers.CG method.
Indeed I use my solver without a preconditioner: solvers.CG(mat=a.mat, rhs=res, sol=du, tol=1E-06, maxsteps = 100)
What do I have to change to update to the new behavior?
Thanks for your help in advance!
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 11 months ago - 4 years 11 months ago #2156
by christopher
Replied by christopher on topic AssertionError - solvers.CG
You need to pass the freedofs of the space. freedofs=fes.FreeDofs(). Actually this was necessary to work savely with dirichlet bcs before was well, we just put the check in for safety.
Best
Christopher
Best
Christopher
Last edit: 4 years 11 months ago by christopher.
Time to create page: 0.114 seconds