Inverse(fes.FreeDofs()) does not do anything

More
4 years 5 months ago #2791 by mischl
Dear all,
I have a weird problem and I am not sure, if I should copy the whole problem

I use NGSolve on two PCs, the code part
Code:
hmat = a.mat.CreateMatrix() hmat.AsVector().data = 0.5 * tau * a.mat.AsVector() + m.mat.AsVector() inv = hmat.Inverse(fes.FreeDofs())

does not run on the PC A and on the other, PC B everything runs smoothly. Both PCs use the exact same file synched over a cloud service
I get no error or anything, it is simply stuck. Before I updated to ubuntu 20.04, this february, also PC A had no problem with the file
More
4 years 5 months ago #2796 by christopher
There should be no problem with that code.
After updating, did you update ngsolve as well?
Can you run ngsolve in a gdb session and give us a backtrace where it hangs?
The following user(s) said Thank You: mischl
More
4 years 5 months ago #2821 by mischl
Dear Christopher
I installed anaconda and afterwards reinstalled ngsolve

I have a print directly infront of it
Code:
inv = hmat.Inverse(fes.FreeDofs())
and afterwards

So it is the inverse I guess. As written, no errorcode.

I also checked it via
Code:
ngsglobals.msg_level = 0
no feedback

therefore one question, for me it feels like ngsolve doesn't find the solver for the inverse
can the reason be, that I start ngsolve via
Code:
export PYTHONPATH=$PYTHONPATH:.

And now I start googling how to run ngsolve in a gdb session, will post results

Thanks for the help!
More
4 years 5 months ago #2822 by christopher

I also checked it via

ngsglobals.msg_level = 0

no feedback

Setting this to 0 gives no output. Set it to some high value (i.e. 7 for maximal output).

Have you tried installing ngsolve in a dedicated environment using conda?

Best
More
4 years 5 months ago - 4 years 5 months ago #2825 by mischl
No, I haven't yet. When doing it on 7 (thanks) I get
Code:
call umfpack ...

Can it be that he doesn't find umfpack because I have to set the paths manually via
Code:
export PYTHONPATH=$PYTHONPATH:.
before I start ngsolve
Last edit: 4 years 5 months ago by mischl.
Time to create page: 0.116 seconds