adios4dolfinx icon indicating copy to clipboard operation
adios4dolfinx copied to clipboard

Submesh support and multiple meshes per file

Open jorgensd opened this issue 9 months ago • 1 comments

A major update to ADIOS4DOLFINx.

New features

  • Write submeshes into the same checkpoint as a parent mesh and retrieve them through reading
  • Write multiple meshes (without the parent <-> sub relation) to the same file.
  • Write/read submesh functions.

For now, only codim-0 meshes works in parallel.

jorgensd avatar Feb 26 '25 22:02 jorgensd

For this to work on codim-1 meshes, I believe that the way forward is to:

  1. Expose dolfinx::fem::CoordinateElement::permute_subentity_closure to be able to map the input geometry dofmap correctly (https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/fem/CoordinateElement.h#L103-L123)
  2. Perform all dof permutations on all cells (not just owned, as codim-1 meshes can have dofs owned by a process, but have no ghost cell).

jorgensd avatar Feb 28 '25 08:02 jorgensd