Open thelfer opened 2 weeks ago
This example is running for me on a fresh install and on the docker image. Could it be that something went wrong with your ngsolve install?
I just followed your tutorial steps by steps. ngsolve
did get installed, so I expect that there is a dependency missing.
Did you install it with -DUSE_OCC=OFF
instead of the default -DUSE_OCC=ON
?
must check
Because unit_square
has lately become an OCC object in ngsolve hence, if you install without OCC support it might not be there.
You should be able to test the code even without OCC if you use from netgen.geom2d import unit_square
.
Indeed. I remember that I removed it because OCC was not listed as a dependency to ngsolve
I think that you have two choices :)
OCC
as a mandatory dependencyWe have included include OCC as a mandatory dependency (we will also change the pyproject.toml in next PR).
The following example, taken from https://ngspetsc.readthedocs.io/en/latest/PETScKSP/poisson.py.html, fails as follows: