Skip to content

petsc_save_checkpoint() does not include the recent XDMF changes. #80

Closed

Description

@gthyagi

petsc_save_checkpoint() does not include the recent XDMF updates for creating vertex and cell datasets; it only saves datasets based on the MeshVariable degree.
Do we need two separate functions for checkpointing (write_timestep() and petsc_save_checkpoint())?
If both are required, the recent XDMF updates should also be added to petsc_save_checkpoint().
For easier maintenance, it may be better to keep a single checkpointing function.

Activity

  1. added a commit that references this issue on Mar 14, 2026
    0f220a1
  2. lmoresi commented on Mar 14, 2026

    @lmoresi
    Member

    Fixed on development branch (commit 0f220a1).

    petsc_save_checkpoint() now delegates to write_timestep(), so it gets all the recent XDMF improvements: vertex/cell compatibility groups, field projection (P2→P1), and tensor repacking for ParaView.

    This is a single checkpointing function internally now — petsc_save_checkpoint() is a convenience wrapper around write_timestep().

    Note: The output file layout changes from a single HDF5 file to per-variable files (same format as write_timestep()), so scripts that read back the old _step_NNNNN.h5 filenames will need updating.

    @gthyagi — should we cherry-pick this to main for a v3.0.1 patch, or is it fine to wait on development for the next release?

  3. gthyagi commented on Mar 14, 2026

    @gthyagi
    ContributorAuthor

    Some of our benchmark examples use petsc_save_checkpoint() to write output. It would be useful to cherry-pick this into main so that users can generate consistent outputs for visualisation in ParaView.

  4. lmoresi commented on Mar 15, 2026

    @lmoresi
    Member

    @gthyagi — Cherry-picked to main (commit 4117a72). The fix is now on both branches.

    Could you verify it works for your benchmark examples and close if all good? The build cache fix (--no-cache-dir) is also on main now, so ./uw build should pick up changes reliably without needing rm -rf build/.

    Underworld development team with AI support from Claude Code

  5. added a commit that references this issue on Mar 16, 2026
    4117a72
  6. added a commit that references this issue on Jun 18, 2026
    7286dc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions