Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

AssertionError - solvers.CG

More
4 years 5 months 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 4 months ago - 4 years 4 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 4 months ago by christopher.
Time to create page: 0.146 seconds