Changeset 20275


Ignore:
Timestamp:
03/01/16 15:33:03 (9 years ago)
Author:
Eric.Larour
Message:

CHG: fixed indexing issue in retrieval of mesh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

    r20223 r20275  
    139139        for i in range(mesh.numberofvertices):
    140140                A=fid.readline().split()
    141                 mesh.x[i]=float(A[0])
    142                 mesh.y[i]=float(A[1])
    143                 mesh.z[i]=float(A[2])
     141                mesh.x[i]=float(A[1])
     142                mesh.y[i]=float(A[2])
     143                mesh.z[i]=float(A[3])
    144144
    145145        A=fid.readline().strip()
     
    153153        mesh.numberofelements=int(fid.readline().strip())
    154154        mesh.elements=empty([mesh.numberofelements,3])
     155        print mesh.numberofelements
    155156        for i in range(mesh.numberofelements):
    156157                A=fid.readline().split()
Note: See TracChangeset for help on using the changeset viewer.