Commit f3ca3971 authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix

parent c3a55870
Pipeline #1292 passed with stage
in 79 minutes
......@@ -42,17 +42,17 @@ print("Entities")
entities = model.getEntities()
for e in entities :
print("entity ",e)
types,tags,vertices = model.mesh.getElements(e[0],e[1])
types,tags,nodes = model.mesh.getElements(e[0],e[1])
for i in range(len(types)):
print("type ", types[i])
print("tags : ", list(tags[i]))
print("vertices : ", list(vertices[i]))
print("nodes : ", list(nodes[i]))
if e[0] == [2] and e[1] == 6 :
model.mesh.setElements(e[0],e[1],types,[tags[0][:10]],[vertices[0][:30]])
model.mesh.setElements(e[0],e[1],types,[tags[0][:10]],[nodes[0][:30]])
gmsh.write("mesh_truncated.msh")
print("Vertices")
tags, coord, _ = model.mesh.getVertices(2,6)
print("Nodes")
tags, coord, _ = model.mesh.getNodes(2,6)
print(tags)
print(coord)
gmsh.finalize()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment