print (ligne)
#
coords = meshMEDFileRead.getCoords()
- #print coords
+ #print(coords[:,2])
if verbose:
nb_comp = coords.getNumberOfComponents()
l_info = coords.getInfoOnComponents()
#
tb_aux = np.zeros(nbnodes, dtype=np.bool)
#
- bathy = np.zeros(nbnodes, dtype=np.float)
- bathy.fill(zUndef)
+ #bathy = np.zeros(nbnodes, dtype=np.float)
+ #bathy.fill(zUndef)
+ bathy = coords[:,2].toNumPyArray()
#
# 4.1. Mesh of the group
#
vx = list()
vy = list()
- for nodeId in np_aux[0]:
+ for nid in np_aux[0]:
+ nodeId = nid.item()
vx.append(coords[nodeId, 0])
vy.append(coords[nodeId, 1])
#print ("vx:\n", vx)