groupeLIAMG / ttcr

Codes to do raytracing for geophysical applications
GNU General Public License v3.0
85 stars 33 forks source link

example2.py - gmsh problem? #52

Closed sdkatvt closed 1 year ago

sdkatvt commented 1 year ago

I have the following issue with example2.py, example1.py runs fine. This seems to be a gmsh issue. I have the latest gmsh installed.

python example2.py Info : Clearing all models and views... Info : Done clearing all models and views Info : Meshing 1D... Info : [ 0%] Meshing curve 10 (Nurb) Info : [ 20%] Meshing curve 11 (Line) Info : [ 30%] Meshing curve 12 (Nurb) Info : [ 50%] Meshing curve 13 (Line) Info : [ 60%] Meshing curve 14 (Line) Info : [ 80%] Meshing curve 15 (Line) Info : [ 90%] Meshing curve 16 (Line) Info : Done meshing 1D (Wall 0.00973982s, CPU 0.009607s) Info : Meshing 2D... Info : [ 0%] Meshing surface 31 (Plane, Frontal-Delaunay) Info : [ 50%] Meshing surface 32 (Plane, Frontal-Delaunay) Info : Done meshing 2D (Wall 0.0669393s, CPU 0.065739s) Info : 2390 nodes 4929 elements Traceback (most recent call last): File "example2.py", line 94, in node, _ = gmsh.model.mesh.getNode(tag) ValueError: too many values to unpack (expected 2)

bernard-giroux commented 1 year ago

I'll take a look at this. I might need to update the example...

bernard-giroux commented 1 year ago

Now fixed with last commit