Hi:
I am using the following python script in which I call both netgen and ngsolve:
from netgen.read_gmsh import ReadGmsh
import the Gmsh file to a Netgen mesh object
mesh = ReadGmsh(“output”)
wrap it into an NGSolve mesh
from ngsolve import *
mesh = Mesh(mesh)
Draw(mesh)
mesh.ngmesh.Save(“netgen_cube.vol”)
print (“num vol elements:”, mesh.GetNE(VOL))
print (“num bnd elements:”, mesh.GetNE(BND))
I have build netgen on an linux machine with no gui availbale and there has no error while building it while following the build instruction. The error which I get when I is the following:
python3 testgmsh.py (testgmsh.py is the name of the file)
set global mesh
zsh: segmentation fault (core dumped) python3 testgmsh.py
This error arises when control reaches “from ngsolve import *” although I am able to call netgen and associated function