- Thank you received: 0
Inverse(fes.FreeDofs()) does not do anything
4 years 5 months ago #2791
by mischl
Inverse(fes.FreeDofs()) does not do anything was created 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
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
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
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 5 months ago #2796
by christopher
Replied by christopher on topic Inverse(fes.FreeDofs()) does not do anything
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?
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
4 years 5 months ago #2821
by mischl
Replied by mischl on topic Inverse(fes.FreeDofs()) does not do anything
Dear Christopher
I installed anaconda and afterwards reinstalled ngsolve
I have a print directly infront of it
and afterwards
So it is the inverse I guess. As written, no errorcode.
I also checked it via
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
And now I start googling how to run ngsolve in a gdb session, will post results
Thanks for the help!
I installed anaconda and afterwards reinstalled ngsolve
I have a print directly infront of it
Code:
inv = hmat.Inverse(fes.FreeDofs())
So it is the inverse I guess. As written, no errorcode.
I also checked it via
Code:
ngsglobals.msg_level = 0
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!
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 5 months ago #2822
by christopher
Have you tried installing ngsolve in a dedicated environment using conda?
Best
Replied by christopher on topic Inverse(fes.FreeDofs()) does not do anything
Setting this to 0 gives no output. Set it to some high value (i.e. 7 for maximal output).I also checked it via
ngsglobals.msg_level = 0
no feedback
Have you tried installing ngsolve in a dedicated environment using conda?
Best
4 years 5 months ago - 4 years 5 months ago #2825
by mischl
Replied by mischl on topic Inverse(fes.FreeDofs()) does not do anything
No, I haven't yet. When doing it on 7 (thanks) I get
Can it be that he doesn't find umfpack because I have to set the paths manually via
before I start ngsolve
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:.
Last edit: 4 years 5 months ago by mischl.
Time to create page: 0.116 seconds