ReadGmsh is incompatible with newer Gmsh (>4.0.2)
Dear Gimli team,
I have a geometry file inv1.txt, which when meshed with newer version (4.0.2),
invmesh = readGmsh("inv1.msh", verbose=True)
inv1.msh gives
File "<ipython-input-13-44bf1a68fef8>", line 2, in <module>
invmesh = readGmsh("inv1.msh", verbose=True)
File "C:\Users\srao\AppData\Local\Continuum\anaconda3\lib\site-packages\pygimli\meshtools\mesh.py", line 257, in readGmsh
nodes[ncount, :] = np.array(line.split(), 'float')[1:]
UnboundLocalError: local variable 'nodes' referenced before assignment
However, when I use older version of gmsh (3.0.4)inv1.msh to mesh the same geometry file,
I get no errors at all
invmesh = readGmsh("inv1.msh", verbose=True)
Reading inv1.msh...
Nodes: 554
Entries: 1229
Points: 123
Lines: 88
Triangles: 1018
Tetrahedra: 0
Creating mesh object...
Dimension: 2-D
Boundary types: 2 (-2, -1)
Regions: 2 (1, 2)
Marked nodes: 123 (99,)
Done.
Mesh: Nodes: 554 Cells: 1018 Boundaries: 1571