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.

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

More
3 years 10 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
3 years 10 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
3 years 10 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
3 years 10 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
3 years 10 months ago - 3 years 10 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: 3 years 10 months ago by mischl.
Time to create page: 0.156 seconds