Commit f432d03e by Jigyasa Watwani

fixed small bug

parent a8b9a7bb
Showing with 1 additions and 1 deletions
...@@ -8,7 +8,7 @@ print(mesh.coordinates()[:, 0]) ...@@ -8,7 +8,7 @@ print(mesh.coordinates()[:, 0])
def refine_mesh(mesh): def refine_mesh(mesh):
cell_markers = df.MeshFunction("bool", mesh, mesh.topology().dim()) cell_markers = df.MeshFunction("bool", mesh, mesh.topology().dim())
cell_markers.set_all(False)
for cell in df.cells(mesh): for cell in df.cells(mesh):
if cell.h()>0.3: if cell.h()>0.3:
cell_markers[cell] = True cell_markers[cell] = True
......
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 sign in to comment