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.

after update ngsolve, python code does not work any more.

More
1 year 1 month ago #4725 by Kai
I updated ngsolve to "NGSolve-6.2.2302-38-g68e747b4f" and now my python script does not work anymore. its really frustrating. Please help me,  i got this error and do not know whats wrong because everything work before update :
Code:
TypeError: ArnoldiSolver(): incompatible function arguments. The following argument types are supported:     1. (mata: BaseMatrix, matm: BaseMatrix, freedofs: pyngcore.pyngcore.BitArray, vecs: list, shift: complex = <ngsolve.ngstd.DummyArgument>, inverse: Optional[str] = None) -> ngsolve.bla.VectorC Invoked with: <ngsolve.la.SparseMatrixSt7complexIdE object at 0x7f41d2d8fc70>, <ngsolve.la.SparseMatrixSt7complexIdE object at 0x7f41d2d43b30>, <pyngcore.pyngcore.BitArray object at 0x7f41d2d43df0>, <ngsolve.la.MultiVector object at 0x7f41d2d8d670>, 10
More
1 year 1 month ago #4726 by Kai
Ok, i found that
Code:
ngsolve.ArnoldiSolver(a.mat, b.mat, fes.FreeDofs(), list(u.vecs), shift)

works, before i had
Code:
ngsolve.ArnoldiSolver(a.mat, b.mat, fes.FreeDofs(), u.vecs, shift)
Time to create page: 0.134 seconds