You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A refined mesh reloaded from its checkpoint has cells joined to the wrong vertices #809
A mesh built with `refinement=2` from a gmsh file and saved by `petsc_save_checkpoint` comes back from `Mesh("checkpoint.mesh.00000.h5")` with the right vertex count (834) and the right vertex coordinates, but the cells of the reloaded mesh connect the wrong vertices: the triangles of `mesh_to_pv_mesh` sum to an area of 93 for a domain of area 0.89, and a field read onto it renders scrambled.
Found rendering the viscoelastic cylinder demonstrator (`~/+Simulations/ve_cylinder_demo/render_demo.py`); the renderer now rebuilds the mesh from the gmsh file with the same refinement and callback instead of reloading it. The unrefined mesh reloads correctly. Whether the DM topology or only the viz topology (`viz/topology/cells`) is wrong is not established; the vertex set is.
Underworld development team with AI support from Claude Code
Same defect as #690. The reproduction there now covers the full matrix: no refined mesh reloads in parallel, and a refined mesh written in parallel does not reload on any rank count, including the writer's. Confirmed on development 8f1af5a.
Same root cause as #690, which stays open: the reloaded refined mesh has wrong cell-to-vertex connectivity in the DM itself, and the scrambled render is one consequence of that.
Checked on development a6eebb6. The probe writes UnstructuredSimplexBox(cellSize=0.25, refinement=r) with write_checkpoint at np 4 and at np 1, then reloads each with Mesh(<mesh h5>) in serial. On every reloaded mesh it reports both symptoms: #690's DM integral of 1, and this issue's total triangle area from mesh_to_pv_mesh.
mesh=uw.discretisation.Mesh(f)
_T=uw.discretisation.MeshVariable("T", mesh, 1, degree=2) # Integral needs a variablearea=uw.maths.Integral(mesh, 1.0).evaluate()
tri=uw.visualisation.mesh_to_pv_mesh(mesh).compute_cell_sizes(length=False, volume=False)["Area"].sum()
written on
refinement
DM integral of 1
viz triangle area
4 ranks
0
1.000000
1.0
4 ranks
1
-0.421288
9.77
1 rank
0
1.000000
1.0
1 rank
1
1.000000
1.0
The two symptoms always appear together. Both appear on the parallel-written refined mesh, and neither appears on the unrefined or serially written controls. The DM integral is wrong as well as the viz topology. That answers the question this issue left open: the DM topology is wrong, not only viz/topology/cells. Any solve or integral on such a reloaded mesh is wrong, not only the picture. The -0.421 matches the r = 1 row of the matrix in #690.
Scripts: runs/2026-11-10-sweep/D/probes/g1_write.py and g1_read.py on hyperion.
Underworld development team with AI support from Claude Code
Activity
lmoresi commentedon Oct 8, 2026
Same defect as #690. The reproduction there now covers the full matrix: no refined mesh reloads in parallel, and a refined mesh written in parallel does not reload on any rank count, including the writer's. Confirmed on development 8f1af5a.
Generated by Claude Code
lmoresi commentedon Nov 10, 2026
Same root cause as #690, which stays open: the reloaded refined mesh has wrong cell-to-vertex connectivity in the DM itself, and the scrambled render is one consequence of that.
Checked on development a6eebb6. The probe writes
UnstructuredSimplexBox(cellSize=0.25, refinement=r)withwrite_checkpointat np 4 and at np 1, then reloads each withMesh(<mesh h5>)in serial. On every reloaded mesh it reports both symptoms: #690's DM integral of 1, and this issue's total triangle area frommesh_to_pv_mesh.The two symptoms always appear together. Both appear on the parallel-written refined mesh, and neither appears on the unrefined or serially written controls. The DM integral is wrong as well as the viz topology. That answers the question this issue left open: the DM topology is wrong, not only
viz/topology/cells. Any solve or integral on such a reloaded mesh is wrong, not only the picture. The -0.421 matches the r = 1 row of the matrix in #690.Scripts:
runs/2026-11-10-sweep/D/probes/g1_write.pyandg1_read.pyon hyperion.Underworld development team with AI support from Claude Code