AssertionError - solvers.CG

More
5 years 4 days ago #2141 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!
More
4 years 11 months ago - 4 years 11 months ago #2156 by christopher
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
Last edit: 4 years 11 months ago by christopher.
Time to create page: 0.114 seconds