Skip to content
Snippets Groups Projects
Commit bb433170 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix

parent ed36b692
No related branches found
No related tags found
No related merge requests found
Pipeline #6155 passed
...@@ -29,7 +29,7 @@ def my_function(xyz): ...@@ -29,7 +29,7 @@ def my_function(xyz):
def compute_interpolation_error(nodes, triangles, f): def compute_interpolation_error(nodes, triangles, f):
uvw, weights = gmsh.model.mesh.getIntegrationPoints(2, "Gauss2") uvw, weights = gmsh.model.mesh.getIntegrationPoints(2, "Gauss2")
jac, det, pt = gmsh.model.mesh.getJacobians(2, uvw) jac, det, pt = gmsh.model.mesh.getJacobians(2, uvw)
numcomp, sf = gmsh.model.mesh.getBasisFunctions(2, uvw, "Lagrange") numcomp, sf, _ = gmsh.model.mesh.getBasisFunctions(2, uvw, "Lagrange")
sf = sf.reshape((weights.shape[0], -1)) sf = sf.reshape((weights.shape[0], -1))
qx = pt.reshape((triangles.shape[0], -1, 3)) qx = pt.reshape((triangles.shape[0], -1, 3))
det = np.abs(det.reshape((triangles.shape[0], -1))) det = np.abs(det.reshape((triangles.shape[0], -1)))
......
...@@ -21,7 +21,7 @@ gmsh.view.addListData(t, "ST", 1, tri1) ...@@ -21,7 +21,7 @@ gmsh.view.addListData(t, "ST", 1, tri1)
t2 = gmsh.view.add("some other data") t2 = gmsh.view.add("some other data")
gmsh.view.addListData(t2, "ST", 1, tri2) gmsh.view.addListData(t2, "ST", 1, tri2)
gmsh.view.combine("elements", "all") gmsh.view.combine("elements", "all", remove = False)
# gmsh.view.write(t, "data.pos") # gmsh.view.write(t, "data.pos")
......
...@@ -14,7 +14,7 @@ p = gmsh.model.addPhysicalGroup(2, [s]) ...@@ -14,7 +14,7 @@ p = gmsh.model.addPhysicalGroup(2, [s])
gmsh.model.mesh.generate(2) gmsh.model.mesh.generate(2)
gmsh.plugin.setNumber("MeshVolume", "Dimension", 2) gmsh.plugin.setNumber("MeshVolume", "Dimension", 2)
gmsh.plugin.setNumber("MeshVolume", "Physical", p) gmsh.plugin.setNumber("MeshVolume", "PhysicalGroup", p)
gmsh.plugin.run("MeshVolume") gmsh.plugin.run("MeshVolume")
_, _, data = gmsh.view.getListData(0) _, _, data = gmsh.view.getListData(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment