mesh-adaptation / animate

Anisotropic mesh adaptation toolkit for Firedrake
MIT License
5 stars 0 forks source link

Naming and checkpointing adapted meshes #14

Closed ddundo closed 5 months ago

ddundo commented 11 months ago

As mentioned here, the name argument passed to amesh = animate.adapt.adapt(mesh, metric, name="adapted_mesh") should also modify the PETSc DM topology representation name of the adapted mesh, which is currently automatically set to something like DM_0x84000003_1 which can cause issues during checkpointing. The easy solution to this is to set newplex.name = self.name + '_topology' in L78 in animate.adapt.adapted_mesh. Then amesh.topology_dm.name is "adapted_mesh_topology" and the mesh is checkpointed under the path topologies/adapted_mesh_topology.